Each individual traci command costs time because data must be passed between your code and sumo. - reduce the number of traci commands (i.e. by caching values that do not change or by using subscriptions) - switch to libsumo https://sumo.dlr.de/docs/Libsumo.html
regards, Jakob Am Di., 16. Nov. 2021 um 02:28 Uhr schrieb Pradeep Viyaluru Harinath < [email protected]>: > Hello All, > > I am running a python code which allows traci to iterate for about 100 > times. I notice that as the simulation time increases the traci slows down > considerably and it takes forever to produce the output. However when I run > using the command prompt it hardly takes a minute to run simulation but > when I use traci it takes close to 10 mins to complete the simulation run. > > > > Let me know if there is something I need to work on to improve the > processing speed. > > > > Regards, > > V.H.Pradeep > > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
