Internally we store an array of matches because with matchAll, it is possible to match /foo/:bar + /foo/:baz (same method) but for purpose of routing only one route is meaningful to be matchable.
This PR increases perf by %12-17 by avoiding array creation (and also honestly, the DX)
Internally we store an array of matches because with
matchAll
, it is possible to match/foo/:bar
+/foo/:baz
(same method) but for purpose of routing only one route is meaningful to be matchable.This PR increases perf by %12-17 by avoiding array creation (and also honestly, the DX)