-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out a way to speed up matrix operation in python #19
Comments
We should possibly also try to make the default Numpy:
This could mean we have to do something about |
A branch |
This looks like the solution: |
From #18
We are currently using
pyrr
for matrix operations. The main problem withpyrr
is that it crates new instances for every calculation allocating a newndarray
. This is very expensive.As an example:
https://github.com/adamlwgriffiths/Pyrr/blob/a86968b7ed242017247e27ac8a0e7b84bca0c333/pyrr/matrix44.py#L223-L236
numpy.dot
has anout
parameter to store the result in an existingndarray
. This avoids memory allocation.The text was updated successfully, but these errors were encountered: