0
Fork 0
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:
Sheraff 2026-11-11 14:54:09 +01:00
commit 017366268a
No known key found for this signature in database
2 changed files with 75 additions and 5 deletions