Skip to content

Multi-gigabyte files keep memory bounded on open and save #237

Closed

Description

@michaelstonis

Parent

#231 → #33 Spec: Broadside v1

What to build

The cross-reference keeps a compact entry representation (about 16 bytes per entry instead of 200–300), and a full save from a file or stream source copies unchanged stream data through bounded windows instead of buffering each stream whole. The large-file test measures process memory, as #45's text asked.

Spec clauses

ISO 32000-2 §7.5.4, §7.5.8; spec story 7

Acceptance criteria

  • A generated file with five million objects opens with cross-reference memory under a per-entry bound the PR states (recommendation: 24 bytes), measured with the allocation helper.
  • Opening, walking and saving unchanged a generated 4 GB file from a seekable stream keeps process private bytes under a documented bound.
  • Saved output for every minimal-corpus file is byte-identical to the current writer's.
  • The cross-reference lookup and save benchmarks show no time regression; the Phase 1 baseline note is updated.

Blocked by

None — can start immediately

Draft note: none (builds on #44, #45, #48)

Deliverables (every ticket)

  • Tests through the public seam (see the spec's Testing Decisions)
  • XML docs citing clauses on public types
  • Conformance map rows updated in the same PR
  • PublicAPI.Unshipped.txt updated
  • Fuzz target and benchmark where the ticket adds a parser, codec or hot path

Activity

  1. added
    task
    ready-for-agent
    phase:7
    track:7A-coverage
    on Oct 10, 2026
  2. added
    in-progress
    on Nov 13, 2026
  3. michaelstonis commented on Nov 14, 2026

    @michaelstonis
    OwnerAuthor

    Merged into spec/33-broadside-v1 via #534.

  4. removed
    in-progress
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

phase:7ready-for-agenttasktrack:7A-coverage

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions