You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit da6ed76
Browse filesBrowse the repository at this point in the historyBrowse files
perf(web): fold the SSR walker entry wrappers into the walkers (#3430)
#3394 split `tryResolveString` and `resolveSSRNode` into an entry function
that resets `ssrTextTail` and a recursive body. The bodies are too big for
V8 to inline, so every template hole paid one extra call — about 2% of SSR
throughput on element-heavy pages, up to 7% where holes are dense.
Pass a `nested` flag through the recursion instead: entry calls (no flag)
reset the separator state, recursive calls keep it. One function each,
identical output. `server-mock.ts` mirrors the signature.
Co-authored-by: Cursor <[email protected]>
SSR: fold the text-separator entry wrappers back into `tryResolveString` and `resolveSSRNode`. #3394 split each walker into an entry function that reset the separator state and a recursive body; the bodies are too large for V8 to inline, so every template hole paid an extra call. The recursion now passes a `nested` flag instead — one function each, same output — recovering the ~2% SSR throughput that split cost on element-heavy pages (up to 7% where holes are dense).
0 commit comments