Skip to content

[pull] master from reactive:master#114

Merged
pull[bot] merged 3 commits intoerickirt:masterfrom
reactive:master
Apr 6, 2026
Merged

[pull] master from reactive:master#114
pull[bot] merged 3 commits intoerickirt:masterfrom
reactive:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Apr 6, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ntucker added 3 commits April 5, 2026 21:24
…ft() (#3876)

GlobalCache.getResults() called unshift() on every cache-miss denormalization,
which is O(n) because it shifts all existing elements. Pre-allocate slot 0
with a placeholder and fill it in-place, turning the operation into O(1).

Benchmarks showed 1.3–3.2% improvement on cold-denormalize paths
(denormalizeLong variants).

Made-with: Cursor
…h switch (#3877)

getDependency used delegate[['', ...][path.length]](...path) — a
computed property lookup with spread that creates a temporary array on
every call and prevents V8 from inlining or type-specializing the
dispatch. Replace with an explicit switch on path.length for monomorphic
call sites.

V8 trace showed getNewEntities deopt changing from "Insufficient type
feedback for generic named access" to a different reason after this
fix, consistent with removing the megamorphic dispatch from the call
path.

Made-with: Cursor
…#3878)

The normalize() return object was constructed with result: '' as any,
then mutated via ret.result = visit(...). This causes a V8 hidden class
transition when the property type changes from string to the actual
result type (array/object/string), triggering "field type constness
changed" invalidations that deoptimize code depending on this object
shape.

Restructured to compute the result first and construct the final
NormalizedSchema in a single step, keeping the object shape stable from
creation.

Made-with: Cursor
@pull pull bot locked and limited conversation to collaborators Apr 6, 2026
@pull pull bot added the ⤵️ pull label Apr 6, 2026
@pull pull bot merged commit 98a7831 into erickirt:master Apr 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant