-
Notifications
You must be signed in to change notification settings - Fork 10
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
improve read_object speed when passing idx #35
Conversation
Codecov ReportAttention:
📢 Thoughts on this report? Let us know! |
We should still allow directly reading with slice objects. How would the user do that? |
Ok nevermind, slices are used when setting |
Thanks for the idea, Luigi! I changed it so that if |
looks very good to me. I'm going to merge. |
See #29 for details of issue and fix. "Fixes" this issue by sacrificing a small amount memory for additional speed. This can improve
read_object
speeds when using theidx
parameter by more than x50 depending on how many events are selected from a file.There is now a x2 speed penalty if the user passes in
idx
that corresponds to all events compared to just reading everything without anyidx
. In the future,read_object
could check if the user did this. For now, however, it is up the user to check.