taTanStackOSS
ta
  • Pipelines
  • Nx runs
Insights
  • Compare tasks
  • Analytics
rorouter
  1. Pipelines
  2. 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/**
perf(router-core): skip recursion for identical array elements in deepEqual

Succeeded in 2m 17s

Started
Linux4 CPU cores

nx run-many --target=build --exclude=examples/** --exclude=e2e/**

841741d3432GitHubOpen on GitHub
TasksResource Usage
Distribute this run
Learn how to enable distribution
Atomizer enabled
43 groups of tasks optimized.

© 2026 Nx Cloud

  • Terms
  • Privacy
  • Changelog
  • Status
  • Docs
  • Contact
  • Pricing
  • Company
  • @NxDevTools
taTanStackOSS