docs(changelog): note the radix route index
CI / dco (pull_request) Successful in 5s
CI / runtimes (bun) (pull_request) Successful in 15s
CI / build (pull_request) Successful in 25s
CI / runtimes (edge) (pull_request) Successful in 14s
CI / runtimes (deno) (pull_request) Successful in 25s

An internal change with no behaviour difference, recorded under
Changed with the lookup numbers from the jarvis run.

Refs #109

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-10-11 12:58:26 -05:00
1 parent 815f76116f
commit d76afd7f25
1 file changed
+12
+12
View File
@@ -37,6 +37,18 @@ npm treats versions as semver and semver forbids leading zeros.
about `maxConnections × maxWsQueue × maxWsMessageBytes`, ≈ 15.6 GiB at the Node defaults; Deno and
Bun have no connection cap, so set one at the platform or proxy there.
### Changed
- **HTTP route lookup uses a radix index** (#109). The router used to scan a specificity-sorted
list per method, and on every 404 and 405 it recompiled and matched every route to build `Allow`.
It now walks a tree per method, built once from the route table, with mesh routes from teapots
in a tree of their own. This is internal and changes no behaviour: the same route wins, with the
same params, `Allow`, implicit `HEAD` and 404/405, checked against the frozen parity corpus.
`graph()`, `explain()` and `openapi()` still read the declared routes, not the tree. Median lookup
time against the old matcher (jarvis, `bench:lookup`): at 500 routes, static hit −54%, late
param hit −88%, method miss −94%, path miss −96%; at 10 routes, every cell is within noise or
faster (late param hit +3.4%, 95% CI −5.0…+12.6%).
### Fixed
- **`static` no longer serves files outside its root through a symlink** (#106). The traversal guard