Fork me on GitHub
#ring
<
2019-05-08
>
ikitommi21:05:15

@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.

ikitommi21:05:00

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.

ikitommi21:05:27

please tell if there is something fishy in the tests.

ikitommi21:05:27

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.