toruseo / UXsim

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

Analyzer: Optimize `area_to_pandas` method #119

Closed EwoutH closed 2 months ago

EwoutH commented 3 months ago

The area_to_pandas function has been optimized to significantly improve its execution speed.

In my testing of a large simulation, this sped up the function from ~75 seconds to ~2.5 seconds (about 30x).

EwoutH commented 2 months ago

@toruseo I think this PR is relatively straightforward, it just makes this function faster without modifying it's behavior.

EwoutH commented 2 months ago

Thanks for merging! This PR was fully tested and validated to have identical output.