4 ms·
The regexprouter compiles all of the routes into a single matcher, so you're not doing a linear search of all of your routes (lots of routers are essentially do
by wrsh07 3y ago
The regexprouter compiles all of the routes into a single matcher, so you're not doing a linear search of all of your routes (lots of routers are essentially doing an if else on all of the routes).
They also have a similar trie router, but my understanding is that it's not as fast.