Skip to content

refactor of preview to avoid rechunking#988

Merged
brendancol merged 3 commits into
masterfrom
preview-notebook-refactor
Mar 8, 2026
Merged

refactor of preview to avoid rechunking#988
brendancol merged 3 commits into
masterfrom
preview-notebook-refactor

Conversation

@brendancol
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the performance PR touches performance-sensitive code label Mar 7, 2026
_snap_factor no longer has a max_ratio gate — it always returns a
divisor of the chunk size (falling back to 1).  The rechunk path in
_reduce_dask and _aligned_chunk_size are removed entirely.

When the snapped factor overshoots the target (e.g. 1680 instead of
1000), a second pass computes the small intermediate and subsamples
to the exact requested dimensions in-memory.
@brendancol brendancol merged commit 51458ed into master Mar 8, 2026
11 checks passed
@brendancol brendancol deleted the preview-notebook-refactor branch May 4, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance PR touches performance-sensitive code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant