News for hackers. Stuff that matters.
Re:I haven’t given up on PHP — yet by k4st on Monday December 15, 2008 @11:11PM (#399174)
Controller route prefixing seems suspicious. Do you include every controller at runtime and use php reflection with some regular expressions to parse all of their prefixes only to figure out what single route to use?
Re:I haven’t given up on PHP — yet by KrisJordan on Tuesday December 16, 2008 @10:20AM (#399538)
In development mode, yes. We look at every controller and form a routing tree.

In deployment mode that routing tree is serialized and cached. Only a single (matching) controller is then touched. Unserializing the data structure is extremely fast and finding a match is roughly an O(log n) operation.