Merge pull request #456 from raphaelsaunier/fix/relative-urls-in-doc

Fix relative links in documentation
This commit is contained in:
Tommi Reiman 2021-01-10 18:10:53 +02:00 committed by GitHub
commit 0ecc2fb9a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
# Different Routers # Different Routers
Reitit ships with several different implementations for the `Router` protocol, originally based on the [Pedestal](https://github.com/pedestal/pedestal/tree/master/route) implementation. `router` function selects the most suitable implementation by inspecting the expanded routes. The implementation can be set manually using `:router` option, see [configuring routers](advanced/configuring_routers.md). Reitit ships with several different implementations for the `Router` protocol, originally based on the [Pedestal](https://github.com/pedestal/pedestal/tree/master/route) implementation. `router` function selects the most suitable implementation by inspecting the expanded routes. The implementation can be set manually using `:router` option, see [configuring routers](configuring_routers.md).
| router | description | | router | description |
| ------------------------------|-------------| | ------------------------------|-------------|

View file

@ -51,4 +51,4 @@ See the [validating route data](route_data_validation.md) page.
## Runtime Exception ## Runtime Exception
See [Exception Handling with Ring](exceptions.md). See [Exception Handling with Ring](../ring/exceptions.md).

View file

@ -76,7 +76,7 @@ The routing sample taken from [bide](https://github.com/funcool/bide) README:
(r/match-by-path routes "/workspace/1/1"))) (r/match-by-path routes "/workspace/1/1")))
``` ```
Based on the [perf tests](https://github.com/metosin/reitit/tree/master/perf-test/clj/reitit/perf/bide_perf_test.clj), the first (static path) lookup is 300-500x faster and the second (wildcard path) lookup is 18-110x faster that the other tested routing libs (Ataraxy, Bidi, Compojure and Pedestal). Based on the [perf tests](https://github.com/metosin/reitit/blob/master/perf-test/clj/reitit/bide_perf_test.clj), the first (static path) lookup is 300-500x faster and the second (wildcard path) lookup is 18-110x faster that the other tested routing libs (Ataraxy, Bidi, Compojure and Pedestal).
But, the example is too simple for any real benchmark. Also, some of the libraries always match on the `:request-method` too and by doing so, do more work than just match by path. Compojure does most work also by invoking the handler. But, the example is too simple for any real benchmark. Also, some of the libraries always match on the `:request-method` too and by doing so, do more work than just match by path. Compojure does most work also by invoking the handler.