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

Optimize Python functions and calls #3

Open
nick88msn opened this issue Feb 25, 2020 · 0 comments
Open

Optimize Python functions and calls #3

nick88msn opened this issue Feb 25, 2020 · 0 comments
Assignees
Labels
optimization Code optimization to speed up runtime

Comments

@nick88msn
Copy link
Owner

  • Add cProfile to functions and reducing runtime
import cProfile

RUN_SERVER = False

    while True:
        #cProfile.run("model.step()")
        model.step()
        node_managers = model.datacollector.get_agent_vars_dataframe()
@nick88msn nick88msn added the optimization Code optimization to speed up runtime label Feb 25, 2020
@nick88msn nick88msn self-assigned this Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Code optimization to speed up runtime
Projects
None yet
Development

No branches or pull requests

1 participant