timely-util: Reduce Columnar ship size from 2 MiB to 32 KiB#37855
Draft
antiguru wants to merge 1 commit into
Draft
timely-util: Reduce Columnar ship size from 2 MiB to 32 KiB#37855antiguru wants to merge 1 commit into
antiguru wants to merge 1 commit into
Conversation
Lower the `Column` chunk ship threshold from 2 MiB to 32 KiB by changing `SHIP_WORDS` from `1 << 18` to `1 << 12` words. 32 KiB is jemalloc's default `tcache_max`, so shipped chunks stay in the per-thread cache instead of taking the arena lock path. The builder path previously carried its own hardcoded `1 << 18` literal, duplicating the merger's `SHIP_WORDS`. Point the builder at `super::SHIP_WORDS` instead so both ship paths share a single source of truth and stay sized comparably, which the doc comment already promised. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
antiguru
force-pushed
the
mh/columnar-64kib
branch
from
July 24, 2026 09:04
49ea028 to
03c1f50
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lower the
Columnchunk ship threshold from 2 MiB to 32 KiB.SHIP_WORDSdrops from1 << 18to1 << 12words.32 KiB is jemalloc's default
tcache_max, so shipped chunks stay in the per-thread cache instead of hitting the arena-lock path.The builder path previously duplicated the 2 MiB literal with its own hardcoded
1 << 18.It now references
super::SHIP_WORDS, so the merger and builder ship paths share one source of truth and stay sized comparably, as the doc comment already promised.This also prevents the two thresholds from silently diverging on future changes.
🤖 Generated with Claude Code