
18 Mar
2012
18 Mar
'12
8:21 a.m.
On Sat, Mar 17, 2012 at 3:32 PM, Greg Weber
you might be interested in looking at the routing code in scotty, which has some extra features.
Routing there is also O(n) in the number of handlers, if I'm reading the
code right. If you can't match a URL to a Handler in less than O(log n) in
the number of handlers, you're doing it wrong. Programs that are growing in
size usually do so because they are actually being used, so as your need
for the framework to scale grows, you have to waste time re-engineering
efficient routing into your existing program, and usually in a panic or
crisis situation. Both Snap and Yesod do this right.
G
--
Gregory Collins