Am 12.09.2012 20:20, schrieb Eldar Insafutdinov:

How many paths are you thinking here? tens or hundreds?

I would say something in the range of one hundred is realistic for a
moderately complex web app (I have one half finished with about 50
routes). So if say 200 are not affecting performance, the state machine
approach is probably not needed.

Btw. router.match() is the same as router.addRoute() is now, but 'match'
seems like a nice naming alternative.

Yeah, I already noticed that that there is addRoute, so I'll rename it.

Ok