git-p4: improve import performance by avoiding reallocations.
commitd80236bcabaf9bcfca481eb2d781f2d9749f9b6d
authorSam Hocevar <sam@zoy.org>
Mon, 16 Mar 2009 22:56:45 +0000 (16 23:56 +0100)
committerSam Hocevar <sam@zoy.org>
Mon, 16 Mar 2009 22:56:45 +0000 (16 23:56 +0100)
treef50a749fab87765f6c6da798ecd34644525601f3
parent030192c550f24d541e766783bd957e67c1b5dd5d
git-p4: improve import performance by avoiding reallocations.

Instead of growing a large byte array chunk by chunk, we now wait
for 8192 chunks and concatenate them before appending them to the
array. This dramatically improves performance when importing large
(> 10 MiB) files.
contrib/fast-import/git-p4