Skip to content

perf(lynx): prove retained heap stretch - #32

Closed
Huxpro wants to merge 1 commit into
perf/lynx-s3-bts-materializationfrom
perf/lynx-s3-retained-heap
Closed

Huxpro wants to merge 1 commit into
perf/lynx-s3-bts-materializationfrom
perf/lynx-s3-retained-heap

Conversation

@Huxpro

@Huxpro Huxpro commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • prove the S3-2 representation change reduces retained heap from 15,075 B/row to 7,944 B/row
  • archive n=5 raw 1k/10k/30k samples plus the GC-normalized 10k snapshot metadata
  • publish an object-family census showing 1.77M fewer live nodes and 69.42 MiB less aggregate self size

Why

  • S3-4 requires a separate stacked PR with pre/post raw values and census/dominator evidence
  • the owning representation is the immediately preceding S3-2 runtime change, so this evidence-only layer preserves one issue / one PR without duplicating or hiding the implementation
  • exact stacked base is f501941d22b6f550cf8709b8235f72339b860db4; head is ae7e5d72e0765fc12613f235d36ebab96ddec929

Changes

  • add formal profile heap results at 1k, 10k, and 30k with five fresh realms per scale
  • add snapshot capture metadata and hashes; raw heap snapshots remain Git-ignored by repository policy
  • add a census report comparing perf(lynx): attribute FCP and create stages #22 with S3-4 arrays, objects, object-element arrays, logical records, owner drafts, and cleanup/worker-release behavior

Validation

  • pnpm format:files:check benchmarks/lynx-table/attribution/results/s3-4-report.md
  • git diff --check
  • pnpm sync
  • n=5 retained heap at 1k/10k/30k; every semantic oracle and worker-release check passed
  • lynx-js-heap-snapshot-analysis summary/types/classes plus perf(lynx): attribute FCP and create stages #22→candidate class diff completed on GC-normalized 10k snapshots
  • pnpm typecheck / targeted runtime tests — not repeated because this layer contains only compressed benchmark data and Markdown; the exact parent runtime passed workspace typecheck and 269 focused tests in perf(lynx): cut keyed component materialization cost #31

Risk / follow-ups

  • this is a same-state high-memory comparison, not an A/B/C lifecycle leak diagnosis; it proves the requested structural family reduction and observes one expected live page
  • analyzer reachability is conservative and Chrome DevTools remains authoritative for exact retained-size dominators
  • S3-5 remains the final stack layer for teardown timing and deterministic storm constants

Closes #30

Stack: #25 → #31 → this PR

Provenance

  • An agent produced this diff (agent-authored)

@Huxpro

Huxpro commented Aug 11, 2026

Copy link
Copy Markdown
Owner Author

Conclusion: close as completed evidence. The retained-heap stretch proof remains useful, but the product branch is obsolete; current dense teardown topology is tracked narrowly in Huxpro/octane issue 43.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant