tempest-framework
tempest-framework copied to clipboard
Router Optimizations part 2
Now that https://github.com/tempestphp/tempest-framework/pull/175 is merged, we can explore some additional improvements to the router:
- [ ] split dynamic and static routes within
RouteConfigso that we don't have to check on them within the router itself - [ ] Add a
RouteMatcherclass that matches aRoutebased on aRequestand cleans up parts of theRouter - [ ] I think we can refactor
resolveParamsto either not use regex matches, or a more simplified version; since we're now sure we already have a match - [ ] Grouping by prefixes for even more performant matching
- [ ] Support regex patterns in the route param syntax