-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
Using String.getBytes(StandardCharsets.UTF_8)} seems to achieve better performance than {{StandardCharsets.UTF_8.encode(String).
Also, replace ReentrantReadWriteLock with StampedLock.
Benchmark Mode Cnt Score Error Units ProtostreamBenchmark.testMarshallAddress avgt 6 265.675 ± 2.005 ns/op ProtostreamBenchmark.testMarshallUser avgt 6 1257.325 ± 7.937 ns/op
This JIRA:
Benchmark Mode Cnt Score Error Units ProtostreamBenchmark.testMarshallAddress avgt 6 154.477 ± 0.431 ns/op ProtostreamBenchmark.testMarshallUser avgt 6 648.798 ± 3.455 ns/op