Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 374 by song6...@gmail.com: Add method in ByteString to avoid big
buffer copy.
http://code.google.com/p/protobuf/issues/detail?id=374
As a probobuf user, I want add two functions to ByteString, so that I can
get/set ByteString underlying bytes and avoid copy when the byte is very
big.
After this change, there's a big performance imporve when encode/decode
with big bytes in Object.
public static ByteString warp(final byte[] bytes)
{
return new ByteString(bytes);
}
public byte[] get()
{
return bytes;
}
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.