preallocate buffer sizes

Preallocation speeds it up a bit.