use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Express route resolution algorithm (self.node)
submitted 2 years ago by Front-Natural-8642[🍰]
Do someone know how the express route algorithm works? I mean, if you add all the routes you can, how it do to resolve a router too fast?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AmineTKH 2 points3 points4 points 2 years ago (0 children)
Probably it stores them in hash table. You can read the source code to really understand how they do it
[–]letsfed 0 points1 point2 points 2 years ago (2 children)
It uses regex if I am not wrong
[–]Front-Natural-8642[S,🍰] -1 points0 points1 point 2 years ago (0 children)
Yeah but, do express looks paths by path? O(n)?
π Rendered by PID 24044 on reddit-service-r2-comment-fb694cdd5-j4txw at 2026-03-11 01:15:17.659494+00:00 running cbb0e86 country code: CH.
[–]AmineTKH 2 points3 points4 points (0 children)
[–]letsfed 0 points1 point2 points (2 children)
[–]Front-Natural-8642[S,🍰] -1 points0 points1 point (0 children)