From 84e6f0752e9be937253933fe525757ccd3e36aff Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 13 Oct 2026 21:21:25 -0500 Subject: [PATCH] docs(readme): describe radix route lookup The README still said matching was a linear scan with a radix tree as post-beta work; CARD-07 (#128) shipped the radix index. Signed-off-by: Diego Resendez --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8237d86..ebab0eb 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ Because that subset is linear, constraints are also compared at boot. Two routes A constraint next to a plain param is still the fallback pattern: with `/u/:id(\d+)` + `/u/:slug`, digits go to `:id` and everything else goes to `:slug`. An unescaped `.` does not match a line terminator, so `(.*)` does not cover every segment. WebSocket routes follow the same rules, except that they match in declaration order, so a plain WS param declared before a constrained one makes the constrained one unreachable. Mesh routes exported by different teapots are checked against each other; a local route still overrides a remote one, with a warning. -Matching is still a linear scan — fine for typical route tables. A radix tree for very large tables remains post-beta work. +Lookup uses a radix tree per method, built once from the final route table, so a request only walks the branches its path can follow. Precedence is the same as above, and so are `Allow`, 405 and OPTIONS. ## Two layers