Hello all,
I'm running some pretty demanding simulations (roughly 5000 LOC), with an average of 80 million events per run. You can easily imagine that, for a 2 minutes simulation time, i need to run each simulation for more than 1 hour. I tried just feeding everything to Pypy, but it actually made things worse (twice slower).
By doing some simple profiling with cProfile, most of the time is spent by handling the events on Simpy's event table. I understand that standard python lists do not perform that well with 80 million entries. Is there any way to speed things up? I'd like to avoid extreme steps like going straight back to C++ or cythonize the entire Simpy module.
Thanks for your time!