There is currently a lot of overhead when serializing byte arrays.
The expected behavior is to treat it as a scalar field and serialize via
Output.writeByteArray.
Instead, they are treated as regular arrays (w/c includes extra metadata on
serialization)
E.g
public class Foo
{
byte[] b;
List<byte[]> rb;
// Map<String,byte[]> // maps should have same behavior as well.
}
should be serialized exactly like it was:
message Foo {
optional bytes b = 1;
repeated bytes b = 2;
}
Original issue reported on code.google.com by david.yu...@gmail.com on 24 Oct 2011 at 7:26
Original issue reported on code.google.com by
david.yu...@gmail.com
on 24 Oct 2011 at 7:26