I work with messages that contain several attributes and an array of thousands of floating point values ββ(double []). When messages are serialized with protocol buffers, thanks to the "packed = true" directive, double values ββare aligned and stored compactly in messages.
But by default, the Java classes generated for this post are a double array as a list of arrays (!), Primitive double box values ββinto objects scattering those objects in memory, while in the end I need a double [] representation for further aggregations ...
Is it possible to generate classes that handle repeating primitive values ββas primitive Java arrays?
source share