Repository navigation
Conversation
New benchmark `editor load tick 50K`: a 2D editor's first tick after spawning a 50,201-node tree, with two filtered `up` row systems, a hash index on the parent and a sorted paint-order index. 32 ms before. - A filtered run after its tree was built again runs the whole order, rather than marking every row and scanning for the marks: the tick 32 -> 25.1 ms. - The tree's build reads each archetype's parent column once: the opacity `up` 5.35 -> 4.5 ms. - The build sets every level in one walk per entity: the opacity `up` 4.77 -> 4.49 ms. - An order build's scratch is shared by every `up` of a thread: the tick 20.6 -> 20.0 ms. `up load` 222 -> 184 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A load in document order lists a paint-order index's entries in key order already; one pass that stops at the first pair out of order checks it. `editor load tick 50K`'s paint system 5.6-5.8 -> 5.1-5.3 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A main-thread system run in an index's order looked its shared row up again whenever the archetype changed, at every row when archetypes interleave in paint order. `editor load tick 50K`'s paint system 4.85 -> 4.5 ms. perf.md records the editor load work: `editor load tick 50K` 31.4-33.2 -> 20.0-20.4 ms and `up load` 221-223 -> 182-186 ms against 826c45a, alternating, with the attempts not kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes an editor's first tick after a bulk load faster: 31.4–33.2 ms → 20.0–20.4 ms at 50K nodes.
up loadimproves from 221–223 ms to 182–186 ms.This PR is stacked on #220 (base
knye/render-order), so merge #220 first. There's no public contract change. It's in 0.2.0 if it merges before 0.2.0 is published.Benchmark
New
editor load tick 50K. It spawns 50,201 nodes in a tree (a document, 200 groups, 2 subgroups each, 124 shapes and images each), then times one tick of:upsystems;Changes
Each change was measured alternating against the version without it.
uprun whose tree was just rebuilt runs the whole order without marking rows one by one. Every row already passed after a rebuild. Tick 32 → 25.1 ms.upon a thread.One trade, recorded in
perf.md:up one root changedgoes from 28 µs to 33 µs at 100 rounds, because its sparse path warms up later. After warm-up both take 14 µs. The otherup, index and order benchmarks are within noise.Tests
up.test.tsadds a filteredupoverflowing the journal with 5,000 spawns, then one change, then an idle run.pnpm run buildandpnpm testinpackages/ecspass: 134 files and 1011 tests.🤖 Generated with Claude Code