Skip to content

Improve slice eval #446

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

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Improve slice eval #446

wants to merge 20 commits into from

Conversation

lshaw8317
Copy link
Collaborator

@lshaw8317 lshaw8317 commented Aug 4, 2025

Necessary bug fixes for integer slicing for reductions and refactoring slices_eval as suggested in #436.
Had to add a couple of modifications to ensure contiguity of numpy arrays in some special cases where an evaluation (and hence copy, to contiguous memory) did not occur (when not using numexpr and when the expression was simply "o0"). Consequently also had to improve the rebasing of operands which the lazyexpr machinery carries out (prior to this PR, the rebasing would not occur when the lazyexpr was just a blosc2 array, i.e. "a" would not be rebased to "o0").
Before merging have to do a benchmark comparing new slicing with non-unit steps for lazy expressions (which only uses numpy at chunk-level) with the old format (which did stepping for the whole result at once).

@lshaw8317
Copy link
Collaborator Author

pre-commit.ci autofix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants