ta
TanStack
OSS
ta
Pipelines
Nx runs
Insights
Compare tasks
Analytics
Sign in
Toggle Sidebar
ro
router
Pipelines
perf(router-core): skip recursion for identical array elements in deepEqual Compare array elements by identity before recursing, count the exact comparison down with a single counter, and drop the `typeof` early exit, which `Array.isArray`/`isPlainObject` already imply. Behavior, key enumeration and getter read order are unchanged (pinned by the new contract test). Measured in one mixed-mode process (all option modes share the function's type feedback, which is how the router uses it): equal numeric arrays ~+65%, flat records +7-9%, nested records and mismatches +7-8%; every case improves. Identity guards inside the object loops were rejected: they grow the recursive function past what V8 keeps inlining and cost -31% on a single-key mismatch. react-router.minimal shrinks by 4 B gzip. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> (cherry picked from commit cb23ed54757255540cb203081c3423524d6483ca)
nx affected --targets=test:eslint,test:unit,test:e2e,test:types,test:build,build --parallel=3
⌘K
perf(router-core): skip recursion for identical array elements in deepEqual
Succeeded
in
13m 55s
Started
Copy command
nx affected --targets=test:eslint,test:unit,test:e2e,test:types,test:build,build --parallel=3
8417
41d3432
GitHub
Open on GitHub
Tasks
Resource Usage
ta
TanStack
OSS