diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2016-04-27 12:00:31 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2016-05-02 17:37:26 +0200 |
commit | a97b769a0ef7fe8b301c07280c9b80233bb77643 (patch) | |
tree | b7689ab05499e22ca4b9787f12a30a437b7e9547 /tests/diff/diffiter.c | |
parent | 88284dfb7905c5990babb4238b7cd30bdf823500 (diff) | |
download | libgit2-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