2 ms·
This is faster because it's doing a linear search. Linear search is really fast when 'n' is small. But it's horribly slow when 'n' is large. But since the http
by jesstaa 12y ago
This is faster because it's doing a linear search.
Linear search is really fast when 'n' is small.
But it's horribly slow when 'n' is large.
But since the http route matching is never going to come up at all in your profiling unless 'n' is large it's better to have a router that handles large values of 'n'.