diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2012-11-20 07:03:56 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2012-11-30 15:55:23 +0100 |
commit | 5a3ad89dbd8954b87e14a20ee2dcb282528d4531 (patch) | |
tree | 90047ba5c62b5900b6166effe49fcead7c943283 /tests-clar/diff/blob.c | |
parent | f56f8585c095b1589b5e3dca0ea64ef907756fc9 (diff) | |
download | libgit2-5a3ad89dbd8954b87e14a20ee2dcb282528d4531.tar.gz |
indexer: make use of streaming also for deltas
Up to now, deltas needed to be enterily in the packfile, and we tried
to decompress then in their entirety over and over again.
Adjust the logic so we read them as they come, just as we do for full
objects. This also allows us to simplify the logic and have less
nested code. The delta resolving phase still needs to decompress the
whole object into memory, as there is not yet any streaming
delta-apply support, but it helps in speeding up the downloading
process and reduces the amount of memory allocations we need to do.
Diffstat (limited to 'tests-clar/diff/blob.c')
0 files changed, 0 insertions, 0 deletions