various small performance improvenemts

* start with bigger buffers
* bufferLeft to avoid recalculation every time
4 files changed