You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love this generator, its working great for me! However, I would like to be able to use this to generate arrays with minimum of 300 elements in each dimension and it's quite slow at the moment. Have you ever heard of the Numexpr package? It's able to perform basic operations on large arrays much faster than NumPy. Maybe this would be able to reduce the time taken to run your generator?
For example, your 'f(t)' function (line5) could be written using Numexpr as follows:
I share the speed concern. Im working with large 3d arrays, and this library just doesn't cut it for that.
The suggested expression using numexpr doesn't speed up the code by much though -- I see about a 5% speedup.
Hi,
I don't think we can win much performance using only Python and numpy and I don't plan to use another dependency for this library.
Have you tried to use numba as proposed in issue #9? andrekv17 reported an important performance gain.
Hi Pierre,
I love this generator, its working great for me! However, I would like to be able to use this to generate arrays with minimum of 300 elements in each dimension and it's quite slow at the moment. Have you ever heard of the Numexpr package? It's able to perform basic operations on large arrays much faster than NumPy. Maybe this would be able to reduce the time taken to run your generator?
For example, your 'f(t)' function (line5) could be written using Numexpr as follows:
import numexpr as ne
def f(t):
return ne.evaluate('6t**5 - 15t4 + 10*t3')
This will massively reduce the time. Just a suggestion for you!
The text was updated successfully, but these errors were encountered: