Skip to content

perf: decode collect partitions as they commit - #180

Merged
yuly3 merged 1 commit into
mainfrom
perf/collect-stream-partition-decode
Jul 4, 2026
Merged

perf: decode collect partitions as they commit#180
yuly3 merged 1 commit into
mainfrom
perf/collect-stream-partition-decode

Conversation

@yuly3

@yuly3 yuly3 commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Rework ResultCursor/TypedResultCursor collect paths to decode each
partition and drop its raw storage before folding in the next one,
instead of merging every partition into one ResultTable before decode.

Peak partition storage drops from the whole result set to the prefetch
window's worth, held alongside the decoded collection. The decode
accumulator is pre-sized from per-partition row_count metadata, saturated
and clamped to a fixed upper bound so untrusted values cannot turn the
reservation into a panic or OOM.

The prefetch window is refilled only after each fold step so a decode
error short-circuits without issuing further fetches.
@yuly3 yuly3 self-assigned this Jul 4, 2026
@yuly3
yuly3 marked this pull request as ready for review July 4, 2026 10:47
@cursor

cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@yuly3
yuly3 merged commit 8183028 into main Jul 4, 2026
6 checks passed
@yuly3
yuly3 deleted the perf/collect-stream-partition-decode branch July 4, 2026 10:47
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.

1 participant