[web-devel] WAI routing?

Gregory Collins greg at gregorycollins.net
Sun Mar 18 13:21:29 CET 2012

On Sat, Mar 17, 2012 at 3:32 PM, Greg Weber <greg at gregweber.info> wrote:

> you might be interested in looking at the routing code in scotty,
> which has some extra features.
> https://github.com/xich/scotty

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.

Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20120318/2b4c211d/attachment.htm>

More information about the web-devel mailing list