tempest-framework icon indicating copy to clipboard operation
tempest-framework copied to clipboard

Router Optimizations part 2

Open brendt opened this issue 1 year ago • 0 comments

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 RouteConfig so that we don't have to check on them within the router itself
  • [ ] Add a RouteMatcher class that matches a Route based on a Request and cleans up parts of the Router
  • [ ] I think we can refactor resolveParams to 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

brendt avatar Mar 01 '24 09:03 brendt