Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a difference in execution speed for each development language? (using JAVA, PYTHON) #11770

Closed
sky4994 opened this issue Oct 5, 2022 · 1 comment
Labels

Comments

@sky4994
Copy link

sky4994 commented Oct 5, 2022

Hello, First of all, thank you in advance for answering my question.

SUMO-version:
1.14.1
operating system:
oracle linux 8

I am running sumo simulation using python's traci.
However, as the network grows and the number of vehicles increases, the performance is slowing down a lot.
If I use libsumo as java in linux environment, can I get improvement in execution speed?

@namdre namdre added the question label Oct 5, 2022
@namdre
Copy link
Contributor

namdre commented Oct 5, 2022

generally, using libsumo will be much faster than using the traci socket-based api.
However, you can use libsumo with several langues (i.e. also python) and the choice of client language should not be relevant for running speed.
Just replacing import traci with import libsumo as traci should be enough in most cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants