use default buffer size
use nio for long stream
buffering when compress
Merge branch 'long-performance'