DASPRiD / Dash

Flexible PSR-7 compliant HTTP router
BSD 2-Clause "Simplified" License
29 stars 9 forks source link

Performance optimizations #36

Closed bakura10 closed 9 years ago

bakura10 commented 10 years ago

For @DASPRiD: https://github.com/c9s/Pux

I know nothing about how this project work, it's full of obscure thing, but maybe it makes sense to you and it could give you some nice ideas to optimize Dash.

DASPRiD commented 9 years ago

It actually has some quite interesting approaches, by compiling every route into a regex, matching against a prepared request string. Of course, the downside of it is, that it can't handle extensions, so it's quite limited. Thanks for hinting me though :)