phalcon/cphalcon — pull request #1898 by piteer1 (2014-01-24 09:38:48+00:00)
Title: Increase performance of getbyname method in router

Because almost all bases on ```Router::getRouteByName``` (for example Url plugin in
views) it is a bottleneck in a
application with bigger set of routes. Each time when ```Router::getRouteByName```
won't find a route in a lookput table, it will try to generate this
table.

I know it's not the cleaniest solution and it can be improved. The best way would be requiring to define a route name while adding it to router.