c9s / r3

libr3 is a high-performance path dispatching library. It compiles your route paths into a prefix tree (trie). By using the constructed prefix trie in the start-up time, you may dispatch your routes with efficiency
http://c9s.github.com/r3/bench.html
MIT License
813 stars 83 forks source link

optimize: optimized pattern `.*`, which can be used prefix matching. #126

Closed membphis closed 4 years ago

membphis commented 5 years ago

I do not know if there was any better way, I need a real prefix match.

here are the typical test cases:

https://github.com/c9s/r3/pull/126/files#diff-54bbbdaaec8855f2ba266946c518709eR15