try to gather scattered writes
authorJoey Hess <joeyh@joeyh.name>
Tue, 22 Nov 2016 00:56:58 +0000 (20:56 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 22 Nov 2016 00:56:58 +0000 (20:56 -0400)
commitae69ebfc7c70b3e523843229fd334e60fbf13405
tree1f68799c64736b0ec98da97f954b705b13ef566f
parent9c311fb5649d3b6c832f87fd13f93b1910b19f4c
try to gather scattered writes

git upload-pack makes some uncessary writes in sequence, this tries to
gather them together to avoid needing to send multiple DATA packets when
just one will do.

In a small pull, this reduces the average number of DATA packets from
4.5 to 2.5.
Remote/Helper/P2P/IO.hs