Skip to content

Reuse fixed ring paths across spool illustrations - #294

Open
bliatun-code wants to merge 1 commit into
mainfrom
codex/reuse-spool-ring-paths
Open

bliatun-code wants to merge 1 commit into
mainfrom
codex/reuse-spool-ring-paths

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

Compute the spool illustration's ten fixed ring paths once when the visual module loads. Every desktop card and Companion spool illustration reuses those paths. Per-instance gradient IDs, color and shading continue to be computed for that spool.

Measurements

Production Chromium UI and release Rust with synthetic SQLite libraries, locally and on an authenticated paired loopback Client. The 10,000-roll library has 1,000 products with ten rolls each. Starting on a loaded card view, the probe opens list view, searches for a supplier matching 5,000 rolls, clears the search, then returns to cards. For the empty library it measures opening the list. Times run from click or text input through the animation frame after the expected result count and rows appear and all pending desktop calls settle. Medians of seven measured runs after two warm-ups, alternating versions. Byte counts include serialized requests and responses excluding headers and assets.

Library Spools Action Time in ms (before → after) Desktop bytes Client–Host bytes
Local 0 list 42.4 → 41.8 1,513 —
Local 10,000 list 145.0 → 145.1 9,599,884 —
Local 10,000 search 51.7 → 52.9 0 —
Local 10,000 clear 39.4 → 40.6 0 —
Local 10,000 cards 199.3 → 157.1 0 —
Paired 0 list 77.3 → 75.6 1,447 4,686
Paired 10,000 list 198.2 → 210.8 8,726,446 9,602,441
Paired 10,000 search 52.6 → 54.0 0 0
Paired 10,000 clear 38.3 → 38.0 0 0
Paired 10,000 cards 199.6 → 159.4 0 0

Desktop SVG markup and generated Companion SVG strings matched the base revision byte for byte for ten color inputs, including solid, multicolor, gradient and fallback colors. A separate Node microbenchmark generating 96 Companion SVG strings measured 27.1 → 11.8 ms (seven measured runs after two warm-ups, alternating versions). This measures markup generation only.

This branch has not been deployed

No deployments
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