-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a State Machine Matcher for the routing
This new State Machine Matcher is intended to replace the existing Table Matcher. It is an improvement in that is is quicker at matching routes, with significant speedups seen for more complex routes and crucially routing tables (up to 5 times seen locally). The previous Table Matcher worked by checking each route individually until a match is found (going through the table). The State Machine Matcher works by considering each part of the route (parts based on `/`). Hence the Table Matcher is O(N) where N is number of routes and State Machine Matcher is O(M) where M is the number of parts in the target path. Note though the State Machine Matcher is O(N) for a route table consisting of routes using non-part-isolating converters.
- Loading branch information
Showing
8 changed files
with
400 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.