Skip to content

Reduce per-byte overhead in VLQ integer decoding #9580

@Dandandan

Description

@Dandandan

Description

The current VLQ decoder calls get_aligned for each byte, which involves repeated offset calculations and bounds checks in the hot loop.

Proposed Change

Align to the byte boundary once, then iterate directly over the buffer slice, avoiding per-byte overhead from get_aligned.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions