bkaradzic/go-lz4 — pull request #5 by zhenjl (2013-11-20 09:58:56+00:00)
Title: optimized cp(), 2x performance increase for large files

AFAICT, cp() needs to append byte by byte because initially there may not be enough in the dst to cover the length requested. But once there's enough in dst, you can just append a whole slice.