matsim-org / matsim-libs

Multi-Agent Transport Simulation
www.matsim.org
461 stars 436 forks source link

Parallelize DynActivityEngine.doSimStep() #3306

Open marecabo opened 1 month ago

marecabo commented 1 month ago

This change parallelizes the processing of DynAgents in DynActivityEngine.doSimStep().

This method is called in every simulation step(!) and when you simulate scenarios with a lot of dynamic agents, it will slow your simulation down a lot.

I followed all methods which are now called in parallel and found them to be thread-safe.