Skip to content

Conversation

@brancz
Copy link
Member

@brancz brancz commented Jan 5, 2026

Cherry-pick vortex-data#5814

…inview (vortex-data#5814)

I noticed that the better blocks compressor uses count_referenced_bytes
which calls is_valid on each view and results in an expensive scalar_at
call. This was 30% of our system-wide CPU usage over 12 hours (see PR
for attached screenshot).

This commit iterates over the nullability mask directly to avoid these
expensive calls.

<img width="1443" height="953" alt="image"
src="https://github.com/user-attachments/assets/88a928d1-e223-426a-9c4e-bd5b35458a0d"
/>

Signed-off-by: Alfonso Subiotto Marques <[email protected]>
@brancz brancz merged commit ccbe3c5 into ps-update Jan 5, 2026
9 of 26 checks passed
@brancz brancz deleted the is-valid-opt branch January 5, 2026 12:18
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.

3 participants