dleshchev / pytrx

toolbox for time resolved x-ray measurements
MIT License
2 stars 2 forks source link

Optimizing Debye performance using numba #12

Closed darrenjhsu closed 4 years ago

darrenjhsu commented 4 years ago

Performance was increase by about 10x (165 ms -> 16.5 ms on my machine) by using numba and parallel. Further optimization could be to store form factor coefficients without reading it from file every time.