Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] traci execution speed

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 <pradeep.viyaluruharinath@xxxxxxxx>:

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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top