snapframework/snap-core — comment on commit 53b8d6c3defa6214067696b59536e877db7295a6
File:  line 0
By meiersi:

Hi Gregory,

the size 2^16 seems rather large. In my [benchmarks](http://lambda-view.blogspot.com/2010/11/defragmenting-lazy-bytestrings.html), I had diminishing returns on defragmentation before compression. Something like 4kb seemed to be a good size for my Core 2 Duo machine. For a newer machine, something like 16kb might serve better.

Moreover, note that the 'bytestring' library deducts a storage overhead from the size of the buffer to ensure that it nicely fits the 4kb pages provided by the OS. (see https://github.com/meiersi/bytestring/blob/master/Data/ByteString/Lazy/Internal.hs#L121)