Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

perf(router-core): keep location-independent buildLocation results on the options object - #9003

Open
schiller-manuel wants to merge 2 commits into
mainfrom
schiller-manuel-perf-router-core-static-location
Open

schiller-manuel wants to merge 2 commits into
mainfrom
schiller-manuel-perf-router-core-static-location

Conversation

@schiller-manuel

@schiller-manuel schiller-manuel commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 2c725bd8946102c3d3692bd7105eed536bf8d0da

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ test:unit, test:types and test:eslint pass for router-core at this revision, and for React, Solid and Vue Router at 01da715af0 (the follow-up touches only router-core internals).
↑ New tests cover spread copies and cross-router isolation; existing mask/cache tests cover invalidation on router.update.
↑ Read-only review of all invalidation paths (constructor, update, setRoutes/HMR) and spread-copy sites found no issues.
↓ e2e suites not run locally; CI and CodSpeed for this revision not inspected.
Bundle size 9.5/10 ↑ gzip −12 to −54 B in all 18 bundle-size scenarios (total −548 B); raw −128 to −136 B in each.
Runtime performance 7/10 ↑ All 12 measured cases are faster or flat (median of 3 interleaved runs).
↓ Local machine was shared: same-commit spread was 7–31%, so per-case magnitudes are rough. CodSpeed numbers pending.
↓ Measured at 01da715af0; the follow-up getter refactor (two small closures per uncached build) was not re-measured locally.

🎯 Changes

buildLocation caches locations that don't read the current location (Links with a stable options object). The cache was a per-router WeakMap keyed by the options object. It now lives on the options object itself:

opts._nextLocation = [opts /* owner */, this.lightweightCache /* epoch */, next]
  • Owner: spread copies such as {...opts, _includeValidateSearch: true} in buildAndCommitLocation, matchRoute and navigate miss the cache.
  • Epoch: the router's existing lightweightCache. It was already replaced in setRoutes, which HMR also calls. It is now also replaced in update() on the client, which is where the old WeakMap was reset, so invalidation is unchanged and the cache stays per-router.
  • Writes: only on objects that already carry _fromLocation, which are Link-owned or internal. The server is unchanged, because isServer still folds both the read and the write away.

To keep every client bundle at or below its current size, the PR also trims buildLocation without changing behavior:

  • One resolveFromCurrent(value, read) helper resolves the true/updater/literal search, hash and state options. read is a getter (fromSearch, () => current().hash, () => current().state) that runs only for true or updaters, so literal values still never read the current location and usedCurrent tracking is unchanged.
  • hash is normalized once (|| '') instead of || undefined and later ?? ''.
  • The route-mask path stops copying the cached match.rawParams. resolveNextParams copies before calling updaters, and build() copies dest.params, so nothing mutates the cached object.
  • Object.create(null) → createNull(); forEach → for…of in fromSearch.

Benchmarks (benchmarks/client-nav, local)

Measured at 01da715af0, before the review follow-up. The baseline is main, which includes #8999's link-mount scenario. The candidate is this branch. Base and candidate builds were interleaved three times, and each cell is the median mean time per iteration. Lower is better. The machine was shared, so the same-commit spread column shows the noise. CodSpeed in CI now has a real link-mount baseline from main's push run, so its report is the authoritative comparison.

Scenario Framework main (ms) this PR (ms) Δ same-commit spread
link-mount react 3.93 3.12 −20.6% 21%
link-mount intent react 3.38 3.20 −5.3% 22%
link-mount solid 8.86 8.65 −2.4% 13%
link-mount intent solid 9.22 8.88 −3.7% 12%
link-mount vue 21.46 21.57 +0.5% 7%
link-mount intent vue 24.09 21.18 −12.1% 27%
links navigation react 2.55 2.32 −8.8% 18%
links navigation solid 11.90 11.01 −7.4% 14%
links navigation vue 3.66 3.42 −6.3% 31%
link-churn navigation react 6.99 5.91 −15.4% 24%
link-churn navigation solid 18.69 18.20 −2.7% 9%
link-churn navigation vue 16.25 15.66 −3.6% 7%

Bundle size (pnpm benchmark:bundle-size:run, all scenarios)

gzip is smaller in every scenario: −12 to −54 B, total −548 B. Raw is −128 to −136 B in each scenario.

Per-scenario
Scenario gzip Δ gzip Δ raw
react-router.full 89702 → 89672 -30 -134
react-router.minimal 86065 → 86037 -28 -130
react-start.deferred-hydration 99862 → 99815 -47 -134
react-start.full 102260 → 102215 -45 -128
react-start.minimal 99119 → 99090 -29 -134
react-start.query-integration 106720 → 106666 -54 -134
react-start.rsbuild.full 102369 → 102340 -29 -134
react-start.rsbuild.minimal 99001 → 98980 -21 -134
react-start.rsbuild.minimal-iife 99402 → 99383 -19 -134
solid-router.full 39191 → 39150 -41 -133
solid-router.minimal 34181 → 34158 -23 -136
solid-start.deferred-hydration 50439 → 50403 -36 -133
solid-start.full 52470 → 52443 -27 -133
solid-start.minimal 47340 → 47305 -35 -133
vue-router.full 56379 → 56355 -24 -133
vue-router.minimal 50656 → 50644 -12 -133
vue-start.full 70830 → 70809 -21 -133
vue-start.minimal 67001 → 66974 -27 -133

Validation

  • CI=1 NX_DAEMON=false pnpm nx run-many -p @tanstack/router-core,@tanstack/react-router,@tanstack/solid-router,@tanstack/vue-router -t test:unit,test:types,test:eslint --skipRemoteCache: passed (17/17 tasks)
  • pnpm format: no changes
  • e2e: not run locally

This PR was written with AI assistance (GitHub Copilot).

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with the relevant test commands, or tests do not apply to this pull request.
  • I fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Performance
    • Repeated location builds for links with unchanged options can reuse cached results, reducing redundant work and helping keep navigation responsive.
  • Bug Fixes
    • Location builds now use updated option values and avoid reusing results across different routers.
    • Search, hash, and state values are resolved consistently. When unspecified, they default to an empty search object, empty hash, and empty state object.

… the options object

Links rebuild their href from a stable options object. The router cached
locations that don't read the current location in a WeakMap keyed by that
object. Store the entry on the options object itself instead, tagged with
its owner (so spread copies miss) and the router's lightweightCache (whose
replacement on route-tree and option updates invalidates every entry).

Also trims buildLocation so the client bundles don't grow: one helper
resolves the `true`/updater/literal search, hash and state options, the
route-mask path stops copying cached match params that nothing mutates,
and the search validation loop drops its callback.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2c725bd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages
Name Type
@tanstack/router-core Patch
@tanstack/react-router Patch
@tanstack/react-start-client Patch
@tanstack/react-start-rsc Patch
@tanstack/react-start-server Patch
@tanstack/router-generator Patch
@tanstack/router-plugin Patch
@tanstack/solid-router Patch
@tanstack/solid-start-client Patch
@tanstack/solid-start-server Patch
@tanstack/start-client-core Patch
@tanstack/start-plugin-core Patch
@tanstack/start-server-core Patch
@tanstack/start-storage-context Patch
@tanstack/vue-router Patch
@tanstack/vue-start-client Patch
@tanstack/vue-start-server Patch
@tanstack/react-start Patch
@tanstack/router-cli Patch
@tanstack/router-vite-plugin Patch
@tanstack/solid-start Patch
@tanstack/start-static-server-functions Patch
@tanstack/vue-start Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

RouterCore now resolves destination values through shared logic and caches eligible built locations on options objects. Cache reuse checks the options owner and lightweight-cache epoch. Tests cover changed options and reuse across routers.

Changes: Router location building

Layer / File(s) Summary
Options-based location cache
packages/router-core/src/router.ts, packages/router-core/tests/mask.test.ts, .changeset/router-core-static-location-slot.md
RouterCore stores eligible locations on options objects and checks the options owner and lightweight-cache epoch before reuse. Client updates reset the epoch. Tests cover changed options and cross-router reuse.
Destination value resolution
packages/router-core/src/router.ts
Search, hash, and state use shared resolution logic. The current-location reader can read a selected property. Route-mask resolution receives matched raw params. Strict-search validation now uses for...of.

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Refactor

Suggested reviewers: sheraff, hakanshehu

Merge Risk: Minimal · up to 2c725

This change moves a location-building cache onto the options object and tidies how destination values are resolved. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: buildLocation results that do not depend on the current location move from a per-router WeakMap onto the options object. It also carries the perf(router-core) scope. T…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description covers the change, its motivation, and the validation steps. It explains the move of the location cache from a per-router WeakMap onto the options object, the epoch and owner checks, a…
Full details: Title check

Explanation

The title names the main change: buildLocation results that do not depend on the current location move from a per-router WeakMap onto the options object. It also carries the perf(router-core) scope. The title is 88 characters, which is longer than the usual short title, but it remains specific and accurate.

Full details: Description check

Explanation

The description covers the change, its motivation, and the validation steps. It explains the move of the location cache from a per-router WeakMap onto the options object, the epoch and owner checks, and the buildLocation trimming. It includes benchmark tables, bundle-size results, and the commands run. It also follows the template's checklist and release-impact sections, and it discloses AI authorship. Two items are open: the e2e suites were not run, and the author left the 'fully understand the code' box unchecked. Neither gap blocks the check. The bundle-size total in the description (-548 B) differs from the PR objectives (342 B), so the author should correct one of them.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 01da715 and 2c725bd.

Files selected for processing: 1

  • packages/router-core/src/router.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@nx-cloud

nx-cloud Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 2c725bd

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 8m 54s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1m 41s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-27 15:23:53 UTC

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Bundle Size Benchmarks

  • Commit: ca139728435a
  • Measured at: 2026-11-27T15:17:34.440Z
  • Baseline source: history:10b22c276ea7
  • Dashboard: bundle-size history

The following scenarios have bundle-size changes compared with the baseline:

Scenario Current (gzip) Initial (gzip) Raw Brotli Trend
react-router.minimal 84.0 KiB
-28 B
83.9 KiB
-28 B
261.4 KiB
-130 B
73.3 KiB
-6 B
▄▄▄▄▄▃▃████▁
react-router.full 87.6 KiB
-30 B
87.4 KiB
-31 B
273.3 KiB
-134 B
76.4 KiB
-60 B
▂▂▂▂▂▂▂████▁
solid-router.minimal 33.4 KiB
-23 B
33.2 KiB
-24 B
95.2 KiB
-136 B
30.2 KiB
-19 B
▁▁▁▁▁▁▁████▅
solid-router.full 38.2 KiB
-41 B
38.1 KiB
-40 B
110.0 KiB
-133 B
34.5 KiB
-61 B
▅▅▅▅▅▅▅████▁
vue-router.minimal 49.5 KiB
-12 B
49.3 KiB
-11 B
136.4 KiB
-133 B
44.9 KiB
+63 B
▁▁▁▁▁▁▁████▆
vue-router.full 55.0 KiB
-24 B
54.9 KiB
-24 B
154.5 KiB
-133 B
49.6 KiB
-38 B
▁▁▁▁▁▁▁████▅
react-start.minimal 96.8 KiB
-29 B
96.6 KiB
-28 B
302.3 KiB
-134 B
84.0 KiB
-122 B
▆▆▆▆▆▆▆████▁
react-start.query-integration 104.2 KiB
-54 B
104.0 KiB
-53 B
328.9 KiB
-134 B
90.4 KiB
-47 B
▇▇▇▇▇▆▆████▁
react-start.deferred-hydration 97.5 KiB
-47 B
96.6 KiB
-46 B
303.7 KiB
-134 B
84.7 KiB
-145 B
▃▃▃▃▃▄▄████▁
react-start.full 99.8 KiB
-45 B
99.7 KiB
-45 B
311.6 KiB
-128 B
86.6 KiB
-60 B
▆▆▆▆▆▆▆████▁
react-start.rsbuild.minimal 96.7 KiB
-21 B
96.5 KiB
-21 B
298.2 KiB
-134 B
83.5 KiB
+14 B
██▁▁▁▁▁▁▁▁▁▁
react-start.rsbuild.minimal-iife 97.1 KiB
-19 B
96.9 KiB
-19 B
299.1 KiB
-134 B
83.8 KiB
-10 B
██▁▁▁▁▁▁▁▁▁▁
react-start.rsbuild.full 99.9 KiB
-29 B
99.8 KiB
-29 B
307.8 KiB
-134 B
86.1 KiB
+41 B
██▁▁▁▁▁▁▁▁▁▁
solid-start.minimal 46.2 KiB
-35 B
46.1 KiB
-35 B
135.0 KiB
-133 B
41.1 KiB
-121 B
▁▁▁▁▁▁▁████▅
solid-start.deferred-hydration 49.2 KiB
-36 B
46.1 KiB
-36 B
142.3 KiB
-133 B
43.9 KiB
-80 B
▁▁▁▁▁▁▁████▃
solid-start.full 51.2 KiB
-27 B
51.1 KiB
-24 B
150.0 KiB
-133 B
45.5 KiB
+56 B
▁▁▁▁▁▁▁████▅
vue-start.minimal 65.4 KiB
-27 B
65.3 KiB
-25 B
185.6 KiB
-133 B
58.4 KiB
-17 B
▁▁▁▁▁▁▁████▄
vue-start.full 69.1 KiB
-21 B
69.0 KiB
-21 B
197.5 KiB
-133 B
61.5 KiB
-126 B
▁▁▁▁▁▁▁████▆

Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

1 package(s) bumped directly, 22 bumped as dependents.

🟩 Patch bumps

Package Version Reason
@tanstack/router-core 1.171.39 → 1.171.40 Changeset
@tanstack/react-router 1.170.46 → 1.170.47 Dependent
@tanstack/react-start 1.169.7 → 1.169.8 Dependent
@tanstack/react-start-client 1.168.45 → 1.168.46 Dependent
@tanstack/react-start-rsc 0.1.68 → 0.1.69 Dependent
@tanstack/react-start-server 1.167.52 → 1.167.53 Dependent
@tanstack/router-cli 1.168.0 → 1.168.1 Dependent
@tanstack/router-generator 1.168.0 → 1.168.1 Dependent
@tanstack/router-plugin 1.169.0 → 1.169.1 Dependent
@tanstack/router-vite-plugin 1.167.49 → 1.167.50 Dependent
@tanstack/solid-router 1.170.43 → 1.170.44 Dependent
@tanstack/solid-start 1.169.7 → 1.169.8 Dependent
@tanstack/solid-start-client 1.168.42 → 1.168.43 Dependent
@tanstack/solid-start-server 1.167.50 → 1.167.51 Dependent
@tanstack/start-client-core 1.170.39 → 1.170.40 Dependent
@tanstack/start-plugin-core 1.172.0 → 1.172.1 Dependent
@tanstack/start-server-core 1.169.45 → 1.169.46 Dependent
@tanstack/start-static-server-functions 1.167.44 → 1.167.45 Dependent
@tanstack/start-storage-context 1.167.41 → 1.167.42 Dependent
@tanstack/vue-router 1.170.42 → 1.170.43 Dependent
@tanstack/vue-start 1.169.7 → 1.169.8 Dependent
@tanstack/vue-start-client 1.167.45 → 1.167.46 Dependent
@tanstack/vue-start-server 1.167.50 → 1.167.51 Dependent

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@9003

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@9003

@tanstack/eslint-plugin-start

npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@9003

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@9003

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@9003

@tanstack/react-router-devtools

npm i https://pkg.pr.new/@tanstack/react-router-devtools@9003

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@9003

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@9003

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@9003

@tanstack/react-start-rsc

npm i https://pkg.pr.new/@tanstack/react-start-rsc@9003

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@9003

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@9003

@tanstack/router-core

npm i https://pkg.pr.new/@tanstack/router-core@9003

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@9003

@tanstack/router-devtools-core

npm i https://pkg.pr.new/@tanstack/router-devtools-core@9003

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@9003

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@9003

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@9003

@tanstack/router-utils

npm i https://pkg.pr.new/@tanstack/router-utils@9003

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@9003

@tanstack/solid-router

npm i https://pkg.pr.new/@tanstack/solid-router@9003

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/@tanstack/solid-router-devtools@9003

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@9003

@tanstack/solid-start

npm i https://pkg.pr.new/@tanstack/solid-start@9003

@tanstack/solid-start-client

npm i https://pkg.pr.new/@tanstack/solid-start-client@9003

@tanstack/solid-start-server

npm i https://pkg.pr.new/@tanstack/solid-start-server@9003

@tanstack/start-client-core

npm i https://pkg.pr.new/@tanstack/start-client-core@9003

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/@tanstack/start-fn-stubs@9003

@tanstack/start-plugin-core

npm i https://pkg.pr.new/@tanstack/start-plugin-core@9003

@tanstack/start-server-core

npm i https://pkg.pr.new/@tanstack/start-server-core@9003

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/@tanstack/start-static-server-functions@9003

@tanstack/start-storage-context

npm i https://pkg.pr.new/@tanstack/start-storage-context@9003

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@9003

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@9003

@tanstack/vue-router

npm i https://pkg.pr.new/@tanstack/vue-router@9003

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/@tanstack/vue-router-devtools@9003

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@9003

@tanstack/vue-start

npm i https://pkg.pr.new/@tanstack/vue-start@9003

@tanstack/vue-start-client

npm i https://pkg.pr.new/@tanstack/vue-start-client@9003

@tanstack/vue-start-server

npm i https://pkg.pr.new/@tanstack/vue-start-server@9003

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@9003

commit: 2c725bd

Comment thread packages/router-core/src/router.ts Outdated
Comment on lines +1945 to +1986
@@ -1963,7 +1983,7 @@ export class RouterCore<
to[0] === '/'
? ''
: dest.unsafeRelative === 'path'
? current().pathname
? current('pathname')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change feels a bit unnecessary, why not keep current().pathname? does it save bytes?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted to current().pathname; the shared helper now takes a getter (() => current().hash / () => current().state) instead of a key. That turned out smaller too: gzip is now −12 to −54 B per bundle-size scenario (−548 B total, was −342 B).

@codspeed

codspeed Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 1.46%

2 warnings, 1 note

⚠️ 42 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚠️ 1 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

ℹ️ 20 benchmarks have no flamegraph

The flamegraph wasn't generated: most of the time was spent in runtime internals, which would leave nothing useful to analyze.

See affected benchmarks

⚡ 1 improved benchmark
❌ 2 regressed benchmarks
✅ 197 untouched benchmarks
⏩ 3 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory mem client unique-location-churn (vue) 80.2 KB 83.8 KB -4.26%
❌ Memory mem client navigation-churn (solid) 108.4 KB 113.1 KB -4.14%
⚡ Memory mem server error-paths error (vue) 136.9 KB 131.3 KB +4.27%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing schiller-manuel-perf-router-core-static-location (2c725bd) with main (10b22c2)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Keep `current()` argument-free and let callers read the hash or state
from it inside a getter, so literal values still never read the current
location.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants