Skip to content

feat/shaper helper dedup - #302

Draft
thejustinwalsh wants to merge 2 commits into
feat/shaper-sort-sizefrom
feat/shaper-helper-dedup
Draft

thejustinwalsh wants to merge 2 commits into
feat/shaper-sort-sizefrom
feat/shaper-helper-dedup

Conversation

@thejustinwalsh

Copy link
Copy Markdown
Collaborator

Stack created with GitHub Stacks CLI • Give Feedback 💬

@thejustinwalsh
thejustinwalsh added this pull request to stack #293 October 11, 2026 13:15
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Docs report 📚

Advisory only — this never blocks merging. Anything left open is tracked in the Sync agent docs issue and verified after merge.

Package Concept Attestation Status
@pmndrs/glyph-benchmarks packages/benchmarks.md · edited Promoted the existing offline packed-core-consumer peer isolation to the lowest held layer; package concept remains acc… ✅
@pmndrs/glyph packages/glyph.md · edited Preserved prepared anchor measurements and explicit renderer invalidation in the lowest held layer; corrected existing … (made at ebeb2657, source now db2f5e5b) ⚠️

✅ attested · ⚠️ stale · ❌ missing

After your last source change, update each concept if it is now wrong, then record what you changed and checked:

  • packages/glyph.md: mise exec -- pnpm scripts run docs:attest -- @pmndrs/glyph "<what you changed and checked>"

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

size-limit report 📦

Surface gzip Surface gzip
Core JS 91.9 kB (0%) Inter font · Bitmap 558.2 kB (0%)
Shaper Wasm 591.7 kB (<0.01% Size increase) Inter font · MTSDF 8.17 MB (0%)
Three.js adapter JS 143.4 kB (0%) Inter font · Slug 618.3 kB (0%)
React adapter JS 143.1 kB (0%) Font Awesome icons · Bitmap 449.9 kB (0%)
Vue adapter JS 142.9 kB (0%) Font Awesome icons · MTSDF 8.76 MB (0%)
R3F hello-world app JS 747.9 kB (<0.01% Size decrease) Font Awesome icons · Slug 657.9 kB (0%)
Tres playground app JS 572.2 kB (<0.01% Size increase) Bitmap baker JS 4.9 kB (0%)
Font validator JS 144.8 kB (0%) Bitmap baker Wasm 231.1 kB (<0.01% Size decrease)
Runtime bake host JS 6.1 kB (0%) MTSDF baker JS 5.6 kB (0%)
Runtime bake Worker JS 13.5 kB (0%) MTSDF baker Wasm 215.5 kB (<0.01% Size increase)
Font baker JS 2.6 kB (0%) Slug baker JS 4.5 kB (0%)
Font baker Wasm 389.0 kB (+0.02% Size increase) Slug baker Wasm 183.7 kB (<0.01% Size decrease)

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Package performance: smoke suite

0 faster · 3 slower · 1 neutral · 2 skipped

Baseline 0.1.0-canary-4e25a96a-20261015 → candidate 0.1.0 (b4b8c590)

Latency distribution across 4 comparable workload p50s. Each workload counts once; these are not frame times.

statistic baseline candidate
Median workload p50 2.750ms 3.420ms
Workloads ≤1 ms 1 1
Workloads ≤2 ms 1 1
Workloads ≤3 ms 3 1
Workloads >3 ms 1 3

Largest candidate workloads (including neutral results):

workload baseline candidate Δ time
relayout after font-size change 3.64ms 4.27ms +0.630ms
publish after color change 2.83ms 3.51ms +0.680ms
measure after text change 2.67ms 3.33ms +0.660ms
measure 100 unchanged labels 62.87µs 66.59µs +0.004ms
                                   faster ◀       ┊       ▶ slower    Δ p50      p  baseline   candidate
- measure after text change                       ┊        ├─●──┤    +24.9%   .029  ▃▆█▃▁▁▁▁▁▁ ▁▁▁▁█▆█▂▃▁
- publish after color change                      ┊     ├───●───┤    +24.2%   .029  ▆▇█▄▃▁▁▁▁▁ ▁▁▁█▆▇▄▁▁▂
- relayout after font-size change                 ┊   ├───●┤         +17.5%   .029  ▄█▃▄▃▁▂▂▁▁ ▁▁▁█▄▂▄▂▃▁
  measure 100 unchanged labels                   ├┼──●──┤             +5.9%   .114  ▃████▄▃▂▂▃ ▁▃▆▇█▄▃▃▁▂
                                   └──────────────┴──────────────┘
                                   -35%           0           +35%
status bench baseline candidate Δ time Δ p50 p 95% CI
🔴 slower measure after text change 2.67ms 3.33ms +0.660ms +24.9% .029 +20.2..+33.4%
🔴 slower publish after color change 2.83ms 3.51ms +0.680ms +24.2% .029 +13.2..+31.8%
🔴 slower relayout after font-size change 3.64ms 4.27ms +0.630ms +17.5% .029 +8.6..+20.8%
1 neutral, 2 skipped
status bench baseline candidate Δ time Δ p50 p 95% CI
neutral measure 100 unchanged labels 62.87µs 66.59µs +0.004ms +5.9% .114 -3.3..+14.7%
skipped: clock-confounded: slower→neutral · 2.99→3.13 publish after text change
skipped: clock-confounded: slower→neutral · 3.08→2.95 reflow after width change

@thejustinwalsh
thejustinwalsh force-pushed the feat/shaper-helper-dedup branch from f548581 to eedd695 Compare October 18, 2026 17:58
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