mirror of
https://github.com/metosin/reitit.git
synced 2025-12-20 01:21:11 +00:00
fix example
This commit is contained in:
parent
3b9130e640
commit
04bb5cd2f0
1 changed files with 1 additions and 1 deletions
|
|
@ -293,7 +293,7 @@ Here's a quick benchmark on the recursive matches.
|
||||||
| `/gin/napue` | 40ns | static
|
| `/gin/napue` | 40ns | static
|
||||||
| `/ciders/weston` | 440ns | catch-all
|
| `/ciders/weston` | 440ns | catch-all
|
||||||
| `/beers/saison` | 600ns | catch-all + static
|
| `/beers/saison` | 600ns | catch-all + static
|
||||||
| `/other/drink` | 12000ns | catch-all + dynamic
|
| `/dynamic/duo` | 12000ns | catch-all + dynamic
|
||||||
|
|
||||||
In this example, we could have wrapped the top-level router in an `atom` and add the beer-routes directly to it, making them order of magnitude faster.
|
In this example, we could have wrapped the top-level router in an `atom` and add the beer-routes directly to it, making them order of magnitude faster.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue