-
Notifications
You must be signed in to change notification settings - Fork 16
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
Optimize performance of uniplot (v2) #42
Conversation
2 remaining failing tests:
|
using cache for speeding up execution
I leverage sparsity by setting empty characters at initialization instead of one by one. then I convolute in 4x4 squares the matrix using a 4 dimensional sumation trick for checking if is empty there (normally we could use scipy for this) Now i know where is not empty i iterate the non-empy places only, which is fast. like 20x faster.
7d432eb
to
c60f726
Compare
@olavolav could you give write permissions to uniplot pls? otherwise I need to push to my branch again, I can´t really edit anything here. Or just change this, whatever it takes less time for you. |
actually you only need to add %len(colors) in line 144 , remove the duplication of pixels= in both 108 116 and fix the swapped height width in the line 86, no need to put the zip stuff |
Made minor modifications for readability, otherwise looks good to go 🚀 |
This is now live as v0.17.0. 🚀 Thank you for the contribution! |
v2 of #40