mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
perf(router-utils): the statement-start guard finds the child holding the offset by a binary search
A linear scan of each list made a statement of many guarded children (JSX children replaced by Hydrate or `<ClientOnly>`) quadratic in them: 3,200 `<ClientOnly>` children froze in 74 ms against the base walk's 21. A scaling row pins it (25,600 against 400 children: base 52, binary search 62, linear scan 778). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8aa9f30ea9
commit
017366268a
2 changed files with 75 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue