Protobuf out-of-the-box is not an easy a way to encode your data because it forces to use additional features like immutable data model pattern or transfer object pattern.
These are not gc-friendly and they require additional objects creation.
Protobuf-gcless is a free and open-source utility that aims to be the best choice for highload systems and android platforms.
Detailed instructions on how to install and use the Protobuf-gcless utility on your Mac are available HERE.
Here are some key features of "Protobuf-gcless":
· complete backward compatibility with protobuf specification 2.3.0
· own code generator which generates fully standalone code. Not need to include additional libraries.
· Very efficient encoding algorithm. Gives ~70% less gc while serializing messaing vs protobuf java implementation 2.3.0
· Gives ~80% gc reduction while deserializing from InputStream vs protobuf java implementation 2.3.0
What's New in This Release: [ read full changelog ]
· Fixed issue #14