-
Notifications
You must be signed in to change notification settings - Fork 96
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
Increase speed of Delta encoding using np.subtract #584
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #584 +/- ##
=======================================
Coverage 99.91% 99.91%
=======================================
Files 59 59
Lines 2332 2332
=======================================
Hits 2330 2330
Misses 2 2
|
Looks good to me 👍 - could you just leave a comment above the line you changed explaining that you're using |
Sure! I will leave a comment. |
Thanks Lee and David! 🙏 This is a good improvement. Always good to avoid unneeded array creation and copies 🙂 Noticed that |
Breaks zarr: #653 |
This PR accelerated Delta encoding by replacing
np.diff
intonp.subtract
.Using inplace operation of
np.subtract
reduce array creation time.Here is a simple benchmark:
TODO: