protostuff
Java serialization library, proto compiler, code generator (by protostuff)
Kryo
Java binary serialization and cloning: fast, efficient, automatic (by EsotericSoftware)
Our great sponsors
protostuff | Kryo | |
---|---|---|
1 | 4 | |
2,002 | 6,066 | |
0.4% | 0.9% | |
0.0 | 8.3 | |
6 months ago | 5 days ago | |
Java | HTML | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
protostuff
Posts with mentions or reviews of protostuff.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-21.
Kryo
Posts with mentions or reviews of Kryo.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-16.
-
gRPC on the client side
Other serialization alternatives have a schema validation option: e.g., Avro, Kryo and Protocol Buffers. Interestingly enough, gRPC uses Protobuf to offer RPC across distributed components:
-
How to quickly speed up Java serialization
Use Kryo Serialization with setRegistrationRequired(false): https://github.com/EsotericSoftware/kryo
-
Marshaling objects in modern Java
If you need something quick and dirty to replace the default java serialization with zero configuration needed, use Kryo
- Downsides to using sun.misc.unsafe for serialization (assuming the code is thoroughly-tested)?
What are some alternatives?
When comparing protostuff and Kryo you can also consider the following projects:
Protobuf - Protocol Buffers - Google's data interchange format
FST - FST: fast java serialization drop in-replacement
FlatBuffers - FlatBuffers: Memory Efficient Serialization Library
protobuf-validation - Protobuf validator for Java
MessagePack - MessagePack serializer implementation for Java / msgpack.org[Java]
PHP Serializer - A Java library for serializing objects as PHP serialization format.
jackson-annotations - Core annotations (annotations that only depend on jackson-core) for Jackson data processor
jsoniter - jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go