3 ms·
> Protobuf-java is a little heavy [...] Just depending on the library adds 1.6MB and nearly 700 classes before you even generate your own message classes. By c
by gregmac 6y ago
> Protobuf-java is a little heavy [...] Just depending on the library adds 1.6MB and nearly 700 classes before you even generate your own message classes.
By comparison, protobuf-net [1] is about 260KB and 68 classes. Python's [2] is a 1MB package download (with source).
Why's the Java one so big?
[1] https://github.com/protobuf-net/protobuf-net https://github.com/protobuf-net/protobuf-net
[2] https://pypi.org/project/protobuf https://pypi.org/project/protobuf
- extropy 6y agoOr just use the lite version? It removes the heavy features like descriptors and reflection. More details: https://developers.google.com/protocol-buffers/docs/reference/java-generated#message https://developers.google.com/protocol-buffers/docs/referenc...