cid-harvard / py-ecomplexity

Python package to compute economic complexity and associated variables
MIT License
63 stars 24 forks source link

Improve performance using numba #10

Closed shreyasgm closed 3 years ago

shreyasgm commented 4 years ago

Since we use a lot of loops and numpy matrices, numba might be worth looking into to enhance performance

shreyasgm commented 3 years ago

Requires too big of a rewrite to include the loop inside the numba-optimized function. Using numba on just calc_eci_pci (with numba-relevant changes to allow njit to work) causes massive slowdown.