March 13, 2012
Java: use faster nonsynchronized ByteArrayOutputStream
Seen here http://javatechniques.com/blog/faster-deep-copies-of-java-objects/ an advice to use unsynchronized version of ByteArrayOutputStream which is faster than default java.io synchronized version.
It seems to make sense! But I have not yet benchmarked it.
It seems to make sense! But I have not yet benchmarked it.
Labels: ByteArray, java, optimization, synchronized