2014/1/7 Lin Yo-An <cornelius.howl@xxxxxxxxx> > https://github.com/c9s/router-benchmark/blob/master/code/dispatch.txt > > Here is the updated benchmark test case. > > I added a benchmark for the dispatch method call, as you see there is a > huge difference when only one route in each test case. > > https://github.com/c9s/router-benchmark/blob/master/code/dispatch.php I can provide a router, that is even faster: $routes = [ '/hello' => ['foo', 'bar'] ]; if (isset($routes['/hello']) { do_something($routes['/hello']); } I couldn't resist :) Also (don't know, what others think) I'd only compare the matching, not the setup. Especially because once you use a form of serialized object and for the other you set it up programmatically ;) > > > > On Tue, Jan 7, 2014 at 8:46 PM, Lester Caine <lester@xxxxxxxxxxx> wrote: > > > Stuart Dallas wrote: > > > >> Tedd Sperling wrote: > >>> > >>>> >>This reminds me of an oversea's client I had where they wanted to > >>>> enter the American market with their Pet Shampoo. I told them they > may want > >>>> to pick a different domain name, but they insisted that they had > properly > >>>> investigated the market and had made their choice of "smellypet.com". > >>>> >> > >>>> >>A year later, they contacted me and said they finally understood > what > >>>> I was talking about. > >>>> > >>> > > >>> >FCKEditor is another higher profile example … > >>> > >> > http://docs.cksource.com/FCKeditor_3.x/Design_and_Architecture/Rebranding > >> > > > > A good documentation of the problem explaining why what seems like a bit > > of a joke can backfire? > > > > I'm of an age where the Windows DDK came on a stack of floppy disks. It > > was quite irritating to read some of the jokes and fowl language that > were > > spread through the code. Something that would not be allowed these days > as > > we can all review the code bases. Care in the choice of names is even > more > > important these days? > > > > > > -- > > Lester Caine - G8HFL > > ----------------------------- > > Contact - http://lsces.co.uk/wiki/?page=contact > > L.S.Caine Electronic Services - http://lsces.co.uk > > EnquirySolve - http://enquirysolve.com/ > > Model Engineers Digital Workshop - http://medw.co.uk > > > > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Best Regards, > > Yo-An Lin > -- github.com/KingCrunch