Solve performance issues with very large chunks
Solve performance issues with very large chunks

Very large chunks need to be copied every time there's a partial write, which is pretty problematic. Instead of doing an almost full copy of the full chunk every time, this patch splits very large chunks into multiple smaller chunks automatically.

Fixes #41.

amphp/stream,amphp/byte-stream