ring-swagger & compojure-api
borkdude 2019-03-29T05:36:31.000600Z

Have there been any benchmarks between jsonista and transit?

ikitommi 2019-03-29T06:18:40.003600Z

@borkdude no, there is not. What kind of tests you would like to see? Maybe all of encoding, decoding & encoding+decoding on the JVM? Current perf tests are here: https://github.com/metosin/jsonista/blob/master/test/jsonista/json_perf_test.clj

ikitommi 2019-03-29T06:24:41.009300Z

btw, now looking at the perf numbers, I think the spec+jsonista combo would enable some good optimizations on perf on decode. As we would know the form of the maps, we could precreate the (Immutable) maps before decode. Setting a value for a known key in pers.array-map is Much faster than adding a key.

ikitommi 2019-03-29T06:25:55.010800Z

My quess is that it would be 2x faster (based on similar optimizations in reitit wildcard param handling)

metametadata 2019-03-29T15:06:55.014600Z

I've recently evaluated different ways of writing/readinig clojure data and (unless I benchmarked something incorrectly) Jsonista turned out to be the fastest so I went with it.