docs(changelog): record the matcher change, which landed after the tier was written
CI / dco (pull_request) Successful in 6s
CI / runtimes (bun) (pull_request) Successful in 17s
CI / build (pull_request) Successful in 29s
CI / runtimes (edge) (pull_request) Successful in 12s
CI / runtimes (deno) (pull_request) Successful in 19s

`[Unreleased]` was written when tier 3 closed and the route-ranking work came after it, so
a user-facing improvement with a measured number had no entry. That is the omission the
benchmark notes published in the same release are about — something measured that never
reached the file where anyone would read it — and cutting the beta without it would have
been a poor way to make the point.

Placed in Changed beside concurrent provider boot. Both are savings that appear only once
something grows, and reading them together says what neither says alone: what this release
improved is what happens when an application gets bigger.

The entry leads with what does not change, because "route ranking now happens somewhere
else" is the sort of sentence that makes a reader check whether their routes still resolve
the way they did. Equal specificity still keeps registration order; the ordering carries it
through a stable sort instead of through a scan.

The numbers are given per route-table size rather than as one figure. A single percentage
would be wrong at both ends — nothing at six routes, +14.9% at two hundred — and the shape
is the honest form of the claim.

Heading still `[Unreleased]`. The version and the date belong to the cut.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-01 22:10:20 -05:00
1 parent 7ccb55d07a
commit f18aa9a42a
1 file changed
+20
+20
View File
@@ -131,6 +131,26 @@ npm treats versions as semver and semver forbids leading zeros.
for a feature that was off. Unchanged where a budget *is* configured: the listener is what
releases a slot when a client disconnects mid-handler.
- **Route ranking is settled when the route table is built, not on every request.** Matching scanned
every route registered under the request's method and ranked the candidates as it went, deriving
each pattern's specificity from its source string per comparison. Both the scan and the ranking
scale with the size of the route table, and neither can produce a different answer between two
requests — the table is assembled once, after the graph is prepared, and handed to the adapter
unchanged. Routes are now compiled, bucketed by method and ordered most-specific-first once, and
matching returns at the first route that matches.
Nothing about which route answers changes. Equal specificity still keeps registration order, which
the ordering carries through a stable sort rather than through a scan that declined to replace its
best on a tie. Two smaller savings ride along on the same path: a path segment holding no `%` skips
`decodeURIComponent` entirely, and decoding is memoized per request rather than repeated for every
candidate route that reaches the same parameter position.
Worth nothing on a small route table and worth a great deal on a large one, which is the shape of
the saving rather than a caveat on it: **no measurable change at 6 routes, +3.4% at 50, and +12% to
+14.9% at 200**. That is also why it went unnoticed for two releases — the benchmark had no
route-table-width dimension until this one, so every matcher change measured as noise regardless of
its size.
- **Independent providers boot concurrently.** Boot walked the topological order one node at a time,
so an application paid the *sum* of its providers' latencies rather than its longest chain — three
providers with no edges between them and 200ms of work each took 616ms for a graph whose critical