Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-dambovaliev authored Dec 25, 2023
1 parent 5c27ff2 commit 79145c9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions gonzales/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ test regex ... bench: 33513 ns/iter (+/- 3388)
test route-recognizer ... bench: 13622 ns/iter (+/- 1177)
```

It costs `1ns` per character of input for matching.
That leads to most routes being matched or not within `10ns` to `20ns`.
It supports case insensitive matching without additional runtime costs.
It also supports path arguments extraction.

Under the hood, it uses a [DFA](https://en.wikipedia.org/wiki/Deterministic_finite_automaton) with a few extra perks.
Many thanks to [BurntSushi](https://github.com/BurntSushi) for his work in this field and his great articles such as [this](https://blog.burntsushi.net/transducers/) .

```rust
let route = vec!["/hello/{user_id}", "/helloworld"];
let router = RouterBuilder::new()
Expand All @@ -52,4 +44,4 @@ Many thanks to [BurntSushi](https://github.com/BurntSushi) for his work in this
The router also supports multi-segment matching with `*`, only at the end of a route.
`/hello/world/*` will match every incoming request path that starts with `/hello/world/`.

arriba arriba andale andale!!!
arriba arriba andale andale!!!

0 comments on commit 79145c9

Please sign in to comment.