开发者

What is fastest serializer in java?

开发者 https://www.devze.com 2023-01-23 12:03 出处:网络
I need onftenly to serialize big objects to bytes. So it is necessary 开发者_运维知识库to have fast serializer for it. Is there is any variants which perform better than java default one?We use protob

I need onftenly to serialize big objects to bytes. So it is necessary 开发者_运维知识库to have fast serializer for it. Is there is any variants which perform better than java default one?


We use protobuff from google for our serialization needs and it is working great. You can get a comparision of all the serializers (in the world ;-)) here http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking


Would you not be best to use the serialization classes in hadoop? If you inherit from Writable, this would let then serialise out in a format that can be moved around easily by hadoop/hbase

0

精彩评论

暂无评论...
验证码 换一张
取 消