toruseo / UXsim

Vehicular traffic flow simulator in road network, written in pure Python
https://toruseo.jp/UXsim/docs/
MIT License
135 stars 61 forks source link

Speed up `link_analysis_coarse` #129

Closed EwoutH closed 4 days ago

EwoutH commented 2 months ago

Speed up link_analysis_coarse, since it takes up the majority of runtime.

image

@toruseo you can assign me to this issue.

toruseo commented 2 months ago

ok, plz try

but it is a single for-loop. Is there much room for improvement?

EwoutH commented 2 months ago

Vectorization can help in many cases.

But now that we only run it once #130 instead of multiple times another approaches, this is less high priority.

toruseo commented 4 days ago

Closing. See https://github.com/toruseo/UXsim/issues/143#issuecomment-2473026855 for the reason. Feel free to re-open.