Ya +1. There is actually a cost of having this to small. Internally that output stream uses datastructures that grow by doubling, so if you keep reseting it, they have to double very often resulting in a lot of memory copies. It might be good to use 10,000 as the default.