diff --git a/CHANGELOG.md b/CHANGELOG.md index 096c45f4..eee889ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,10 +19,6 @@ * `reitit.interceptor/transform-butlast` helper to transform the interceptor chains (last one is usually the handler). -### `reitit-pedestal` - -* new optional module for [Pedestal](http://pedestal.io/) integration. See [the docs](https://metosin.github.io/reitit/http/pedestal.html). - ## `reitit-middleware` * `reitit.ring.middleware.dev/print-request-diffs` middleware transformation function to print out request diffs between middleware to the console @@ -39,12 +35,21 @@ +## `reitit-sieppari` + +* New version of Sieppari allows interceptors to run on ClojureScript too. + +### `reitit-pedestal` + +* new optional module for [Pedestal](http://pedestal.io/) integration. See [the docs](https://metosin.github.io/reitit/http/pedestal.html). + ### dependencies * updated: ```clj [metosin/muuntaja "0.6.3"] is available but we use "0.6.1" +[metosin/sieppari "0.0.0-alpha6"] is available but we use "0.0.0-alpha7" ``` ## 0.2.9 (2018-11-21) diff --git a/doc/performance.md b/doc/performance.md index 52752bcb..a1f73585 100644 --- a/doc/performance.md +++ b/doc/performance.md @@ -81,7 +81,7 @@ To get better view on the real life routing performance, there is [test](https:/ Thanks to the snappy new [segment-tree](https://github.com/metosin/reitit/blob/master/modules/reitit-core/src/reitit/segment.cljc) algorithm, `reitit-ring` is fastest here. Pedestal is also fast with it's [prefix-tree](https://en.wikipedia.org/wiki/Radix_tree) implementation. -![Opensensors perf test](images/opensensors.png) +![Opensensors perf](images/opensensors.png) ### CQRS apis @@ -89,7 +89,7 @@ Another real-life [test scenario](https://github.com/metosin/reitit/blob/master/ Both `reitit-ring` and Pedestal shine in this test, thanks to the fast lookup-routers. On average, they are **two** and on best case, **three orders of magnitude faster** than the other tested libs. Ataraxy failed this test on `Method code too large!` error. -![Opensensors perf test](images/lupapiste.png) +![lupapiste perf](images/lupapiste.png) **NOTE**: in real life, there are usually always also wild-card routes present. In this case, Pedestal would fallback from lookup-router to the prefix-tree router, which is order of magnitude slower (30x in this test). Reitit would handle this nicely thanks to it's `:mixed-router`: all static routes would still be served with `:lookup-router`, just the wildcard routes with `:segment-tree`. The performance would not notably degrade. diff --git a/project.clj b/project.clj index a0c51beb..065aeba8 100644 --- a/project.clj +++ b/project.clj @@ -28,7 +28,7 @@ [metosin/schema-tools "0.10.5"] [metosin/muuntaja "0.6.3"] [metosin/jsonista "0.2.2"] - [metosin/sieppari "0.0.0-alpha6"] + [metosin/sieppari "0.0.0-alpha7"] [meta-merge "1.0.0"] [lambdaisland/deep-diff "0.0-25"] @@ -72,8 +72,8 @@ [ring "1.7.1"] [ikitommi/immutant-web "3.0.0-alpha1"] [metosin/ring-swagger-ui "2.2.10"] - [metosin/muuntaja "0.6.3"] - [metosin/sieppari "0.0.0-alpha5"] + [metosin/muuntaja] + [metosin/sieppari] [metosin/jsonista "0.2.2"] [criterium "0.4.4"] @@ -102,12 +102,12 @@ [org.clojure/core.async "0.4.490"] [manifold "0.1.8"] [funcool/promesa "1.9.0"] - [metosin/sieppari "0.0.0-alpha5"] + [metosin/sieppari] [yada "1.2.16"] [aleph "0.4.6"] [ring/ring-defaults "0.3.2"] [ataraxy "0.4.2"] - [bidi "2.1.4"]]} + [bidi "2.1.5"]]} :analyze {:jvm-opts ^:replace ["-server" "-Dclojure.compiler.direct-linking=true" "-XX:+PrintCompilation"