DEV Community

Discussion on: New php router is 25 times faster then klein router

Collapse
grocker42 profile image
Grocker

But why are there such a big differences in performance?

Collapse
alexdodonov profile image
alexdodonov Author

mezon/router provides only basic routing functionality. it made possible to use more simple URL parser and find necessary route handler faster.

Collapse
abhinav1217 profile image
Abhinav Kulshreshtha

When you say only basic routing functionality, What are you not providing. I like the idea of automatic url generation with action-suffix. I mainly use a rest call to graphql-rest hybrid endpoint. Which means that uri strings are dynamically generated, e.g books/authors/bio and book/authors/bio/contact. Currently I am using slim framework with its default fastroute. Is your router PSR-7 compliment?

Thread Thread
alexdodonov profile image
alexdodonov Author

It is not yet PSR-7 compliment. But I hope it will be. Soon )