ring

ikitommi 2019-05-08T21:38:15.095800Z

@mpenet re-run the perf-test, protocols are 1-2 orders of magnitude faster. def-derived-map is the slowest, it’s get does multiple hash-lookups internally.

ikitommi 2019-05-08T21:38:35.095900Z

ikitommi 2019-05-08T21:40:00.097400Z

e.g. 530ns (potemkin) vs 73ns (optimized map) vs 7ns (protocol) to construct a Request proxy and ask 10 times a pre-calculated value from it.

ikitommi 2019-05-08T21:40:27.097800Z

please tell if there is something fishy in the tests.

ikitommi 2019-05-08T21:42:27.099800Z

if they are correct, having protocols would enable ring-apps to speed-up a lot. Also, many things have optimized impls already in the java-side, we couls just use those instead of the default ring impls.