Skip to content

[codex] draft svg buffer parser refactor#356

Draft
lovasoa wants to merge 1 commit into
masterfrom
codex/draft-svg-buffer-parser
Draft

[codex] draft svg buffer parser refactor#356
lovasoa wants to merge 1 commit into
masterfrom
codex/draft-svg-buffer-parser

Conversation

@lovasoa
Copy link
Copy Markdown
Owner

@lovasoa lovasoa commented Apr 27, 2026

Summary

Draft snapshot of the SVG persistence parser refactor. This moves stored SVG scanning toward buffer-backed elements, lazy attribute/text/path reads, and writer-owned stored attribute order.

This is intentionally marked draft because the current shape is not merge-ready and still needs simplification/review before landing.

Notes

  • Streaming parser now yields buffer-backed element/suffix objects.
  • Stored element IDs are read eagerly; other data stays lazy.
  • Persistence rewrite can preserve raw source buffers for clean items.
  • Tool contracts now expose stored attribute order for parser reuse.

Validation

  • npm test
  • npm run bench

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