Skip to content

Reduce source-backed serialization overhead - #406

Merged
aehlke merged 3 commits into
scinfu:masterfrom
lake-of-fire:perf/source-backed-serialization-followups
Aug 25, 2026
Merged

Reduce source-backed serialization overhead#406
aehlke merged 3 commits into
scinfu:masterfrom
lake-of-fire:perf/source-backed-serialization-followups

Conversation

@aehlke

@aehlke aehlke commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Follow-up optimizations for the source-backed serializer merged in #397.

This change:

  • appends contiguous byte buffers directly instead of materializing suffix collections;
  • handles partially filled pooled buffers without slice allocation;
  • returns immediately when a source-backed document has no dirty roots, avoiding output-settings copies and patch traversal.

The behavior and fallback policy are unchanged.

Verification:

  • complete SwiftSoup suite: 662 passed, 0 failed

@aehlke
aehlke merged commit 98bcab0 into scinfu:master Aug 25, 2026
3 checks passed
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