Skip to content

chore: Use smaller merge buffers. - #74

Merged
stuhood merged 1 commit into
mainfrom
stuhood.smaller-merge-buffers
Oct 23, 2025
Merged

chore: Use smaller merge buffers.#74
stuhood merged 1 commit into
mainfrom
stuhood.smaller-merge-buffers

Conversation

@stuhood

@stuhood stuhood commented Oct 23, 2025

Copy link
Copy Markdown
Collaborator

What

Reduce the per-segment buffer sizes from 4MB to 512KB.

Why

#71 moved from buffers which covered the entire file to maximum 4MB buffers. But for merges with very large segment counts, we need to be using more conservative buffer sizes. 512KB will still eliminate most posting list reads: posting lists larger than 512KB will skip the buffer.

@stuhood
stuhood requested a review from rebasedming October 23, 2025 18:10
@stuhood
stuhood merged commit 71c06fe into main Oct 23, 2025
5 checks passed
@stuhood
stuhood deleted the stuhood.smaller-merge-buffers branch October 23, 2025 19:57
mdashti pushed a commit that referenced this pull request Dec 3, 2025
## What

Reduce the per-segment buffer sizes from 4MB to 512KB.

## Why

#71 moved from buffers which covered the entire file to maximum 4MB buffers. But for merges with very large segment counts, we need to be using more conservative buffer sizes. 512KB will still eliminate most posting list reads: posting lists larger than 512KB will skip the buffer.
stuhood added a commit that referenced this pull request Dec 3, 2025
## What

Reduce the per-segment buffer sizes from 4MB to 512KB.

## Why

#71 moved from buffers which covered the entire file to maximum 4MB buffers. But for merges with very large segment counts, we need to be using more conservative buffer sizes. 512KB will still eliminate most posting list reads: posting lists larger than 512KB will skip the buffer.
stuhood added a commit that referenced this pull request Dec 10, 2025
## What

Reduce the per-segment buffer sizes from 4MB to 512KB.

## Why

#71 moved from buffers which covered the entire file to maximum 4MB buffers. But for merges with very large segment counts, we need to be using more conservative buffer sizes. 512KB will still eliminate most posting list reads: posting lists larger than 512KB will skip the buffer.
stuhood added a commit that referenced this pull request Dec 10, 2025
## What

Reduce the per-segment buffer sizes from 4MB to 512KB.

## Why

#71 moved from buffers which covered the entire file to maximum 4MB buffers. But for merges with very large segment counts, we need to be using more conservative buffer sizes. 512KB will still eliminate most posting list reads: posting lists larger than 512KB will skip the buffer.
stuhood pushed a commit that referenced this pull request Jan 13, 2026
* perf: remove general overhead during segment merging (#47)
* changes to make merging work (#48)
* fix: Use smaller buffers during merging (#71)
* chore: Use smaller merge buffers. (#74)
stuhood pushed a commit that referenced this pull request Jan 13, 2026
* perf: remove general overhead during segment merging (#47)
* changes to make merging work (#48)
* fix: Use smaller buffers during merging (#71)
* chore: Use smaller merge buffers. (#74)
stuhood pushed a commit that referenced this pull request Jan 13, 2026
* perf: remove general overhead during segment merging (#47)
* changes to make merging work (#48)
* fix: Use smaller buffers during merging (#71)
* chore: Use smaller merge buffers. (#74)
stuhood pushed a commit that referenced this pull request Jan 14, 2026
* perf: remove general overhead during segment merging (#47)
* changes to make merging work (#48)
* fix: Use smaller buffers during merging (#71)
* chore: Use smaller merge buffers. (#74)
rebasedming pushed a commit that referenced this pull request Feb 10, 2026
* perf: remove general overhead during segment merging (#47)
* changes to make merging work (#48)
* fix: Use smaller buffers during merging (#71)
* chore: Use smaller merge buffers. (#74)
rebasedming pushed a commit that referenced this pull request Feb 10, 2026
* perf: remove general overhead during segment merging (#47)
* changes to make merging work (#48)
* fix: Use smaller buffers during merging (#71)
* chore: Use smaller merge buffers. (#74)
rebasedming pushed a commit that referenced this pull request Jun 22, 2026
* perf: remove general overhead during segment merging (#47)
* changes to make merging work (#48)
* fix: Use smaller buffers during merging (#71)
* chore: Use smaller merge buffers. (#74)

(cherry picked from commit e814640)
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