Skip to content

docs: keep the native render research record in the repository - #275

Merged
JuroOravec merged 1 commit into
mainfrom
docs/native-render-research-record
Oct 23, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
docs/native-render-research-record

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

Summary

The research behind the native render path (October 2026) lived on a local branch that was never merged, with its design notes, work logs and timing data in gitignored folders. Those are about to be deleted. This change keeps what someone extending the native render levels later will need, in the repository.

  • Adds docs/design/rust_rendering_exploration.md, the research note, edited so it stands on its own. A note at the top says it is the research record and points to docs/design/native_render.md for what ships.
  • Adds what only the deleted files held:
    • how the research measured, so a new level can be timed the same way: fresh-process pairs, why the decision figure is the median of the renders with no full garbage collection, the noise numbers behind each threshold, the keep rule, how to choose between a Rust arm and its Python control, how collections are counted, and a short recipe to repeat a comparison;
    • each level's projection next to its measurement;
    • why each option was dropped: C1's Rust arm, C1b, B3, B4, the full native scheduler, and other rejected alternatives, each with the checks that would have shown it was wrong;
    • the risks the prototype recorded and how the shipped levels resolved them;
    • traps a new level can fall into: dict lookups that run user __eq__, read order, definition registration order, Events updates needing insertion order, surrogates in template literals, cache keys where True == 1, PyO3 classes the garbage collector does not track, and error chaining from Rust;
    • the remaining Python-only cuts, the one-time costs on the first load, and what was never timed.
  • Corrects five claims in the original note that the work logs had already shown wrong: the B0 loop figure (16.3 ms over all renders came from garbage collection; 3.3 ms without it), the lone-surrogate behaviour, ComponentLike.register(str), which values B2 can decline on a page, and the module's gil_used declaration.
  • Replaces every pointer to the research branch, its tags, the research worktree and .benchmarks/ files: in native_render.md, in the decision map and the Python-cuts row of performance_architecture_experiments.md, and in rust_rendering.md, which said no Rust benchmark had been run.

Docs only. No code, test or changelog change.

Follow-ups outside this PR

Checks

  • scripts/validate.py: all validators pass.
  • scripts/check.py --profile fast: passed.
  • Every relative link and anchor in the four changed files resolves.
  • An independent reviewer checked the note against the sources for missing insights and wrong claims, and a second reviewer made a separate prose pass. Their findings are folded in, and the first reviewer checked the fixes again.

🤖 Generated with Claude Code

Add docs/design/rust_rendering_exploration.md, the research note behind
the native render path, edited to stand on its own once the research
branch and its gitignored notes are gone. It now also records how the
research measured (and how to repeat a comparison), each level's
projection against its result, why each option was dropped, the risks
the prototype recorded and how production resolved them, and the traps
a new level can fall into. Five claims the work logs had shown wrong are
corrected.

Point native_render.md, rust_rendering.md and the experiments ledger at
the note instead of the research branch, its tag and local harness
paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec merged commit a2da764 into main Oct 23, 2026
2 checks passed
@JuroOravec
JuroOravec deleted the docs/native-render-research-record branch October 23, 2026 11:25
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