eishay / jvm-serializers

Benchmark comparing serialization libraries on the JVM
http://groups.google.com/group/java-serialization-benchmarking
3.28k stars 560 forks source link

Disable fury ByteArrayStream copy opimization #90

Closed chaokunyang closed 9 months ago

chaokunyang commented 9 months ago

As #89 said, fury io.fury.Fury#serializeJavaObject(java.io.OutputStream, java.lang.Object) may save a copy inside, which may affect the benchmark result.

This won't make very much difference since serialization is much more time consuming than the copy of ~250 bytes, but to make the benchmark result more solid, this PR workaround it by copying the data manually .