Hi all,<br> I have been trying to write a network simulator in Erlang modelled on ns-3. The code can be found at <a href="https://github.com/avras/nsime">https://github.com/avras/nsime</a><br><br>NSIME is a discrete event simulator where a registered gen_server process nsime_simulator holds all the events to be simulated in a gb_trees sorted by event time. This process has become a bottlneck when the simulation is large as multiple entities try to schedule events by doing a call on the single nsime_simulator process. I am still a newbie in Erlang profiling so this is more of a hunch arising from running the example scenarios. <br>
<br>How can I remove this bottleneck?<br><br>Thanks in advance<br>sarva<br>