Skip to content

Reduce small reads and repeated allocations in BGReader/XDR #4

Description

@MrTeeett

Small reads while BGReader is stopped and XDR padding skips cause unnecessary calls to the underlying reader and temporary allocations. Reuse scratch storage for padding, buffer small reads, and preserve the capacity of buffers returned to the pool. Preserve partial-read behavior, data returned with EOF, error propagation, and the byte stream. Keep this change separate from Fetch arenas, decoded read windows, and BLOB materialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementperformance

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions