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.

Labels: , , ,

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?