JYU-IBA / potku

Potku is analysis and simulation software for ToF-ERD measurements
https://www.jyu.fi/science/en/physics/research/infrastructures/accelerator-laboratory/pelletron/potku/
GNU General Public License v2.0
7 stars 7 forks source link

Slow saving of cuts #260

Closed tleppala closed 2 years ago

tleppala commented 2 years ago

Saving Cuts to file recomputes all points again.

15s total time, 25.1 million function calls ncalls, tottime, cumtime 3872843 4.430 13.754 selection.py:881(point_inside) 452049 3.169 4.302 math_functions.py:358(point_inside_polygon) 452049 2.167 3.400 selection.py:684(get_points) 4197654 1.823 1.823 selection.py:82(is_inside)

enhancing selection functions would help. Also using already computed data would make this step unnecessary.

tleppala commented 2 years ago

changes implemented in pull request #271