grpc-java/benchmarks/src
Carl Mastrangelo efc5cf50b7 benchmarks: avoid 2 copies in favor of one
MessageFramer calls Drainable.drainTo with a special output stream of
OutputStreamAdapter.  Currently, ByteBufInputStream writes to this output
stream by allocating a heapBuffer in UnsafeByteBufUtil.getBytes, copying
from the direct byte buffer of BBIS, and then copies to the direct byte
buffer from MessageFramer.writeRaw().

This change is an easy way to cut down on wasted memory, even though
ideally there would be some way to have less copies.  The actual data is
only around 10 bytes, but causes O(10)s of megabytes allocation for the
heap pool.

For #2062
2016-07-26 10:38:03 -07:00
..
generated/main compiler: make Stub final class 2016-07-22 09:49:32 -07:00
jmh/java/io/grpc benchmarks: avoid 2 copies in favor of one 2016-07-26 10:38:03 -07:00
main Fix selection of security Provider to conscruct SSLContext 2016-07-18 14:25:27 -07:00
test/java/io/grpc/benchmarks/driver testware: fix flakes caused by pickUnusedPort 2016-06-28 13:34:38 -07:00