summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2016-04-27 12:00:31 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2016-05-02 17:37:26 +0200
commita97b769a0ef7fe8b301c07280c9b80233bb77643 (patch)
treeb7689ab05499e22ca4b9787f12a30a437b7e9547 /tests/diff/diffiter.c
parent88284dfb7905c5990babb4238b7cd30bdf823500 (diff)
downloadlibgit2-a97b769a0ef7fe8b301c07280c9b80233bb77643.tar.gz
odb: avoid inflating the full delta to read the headercmn/faster-header
When we read the header, we want to know the size and type of the object. We're currently inflating the full delta in order to read the first few bytes. This can mean hundreds of kB needlessly inflated for large objects. Instead use a packfile stream to read just enough so we can read the two varints in the header and avoid inflating most of the delta.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions