Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Printing to ByteBuffer (bytes) #11
I run some benchmarks and the results are quite surprising. The throughput is never better when printing to bytes, but the allocation rate is significantly lower (2x for case classes). Not sure I can reasonably explain neither why allocations are nearly the same when printing int arrays nor why throughput isn't improved. Although, I think it's a reasonable first step in binary printing.
Current coverage is 87.25% (diff: 100%)
@@ master #11 diff @@ ========================================== Files 11 11 Lines 96 102 +6 Methods 87 93 +6 Messages 0 0 Branches 5 5 ========================================== + Hits 83 89 +6 Misses 13 13 Partials 0 0