I am using Spark, and to improve object serialization/de-serialization performance, I always choose kryo serializer. Then I realized that on the Kryo github site, there is a section on "Unsafe IO", and it states:
Using Unsafe-based IO may result in a quite significant performance
boost (sometimes up-to an order of magnitude), depending on your
application. In particular, it helps a lot when serializing large primitive arrays as part of your object graphs.
could someone comment on why use Unsafe-basedIO stream can perform much better than through for example, the stream that is based on ByteBufferInputStream/ByteBufferOutputStream?
Jun