@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.
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.
please tell if there is something fishy in the tests.
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.