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 run-many --target=build --exclude=examples/** --exclude=e2e/**
⌘K
perf(router-core): skip recursion for identical array elements in deepEqual
Succeeded
in
2m 17s
Started
Linux
4 CPU cores
Copy command
nx run-many --target=build --exclude=examples/** --exclude=e2e/**
8417
41d3432
GitHub
Open on GitHub
Tasks
Resource Usage
ta
TanStack
OSS