blame.c: don't drop origin blobs as eagerly
authorDavid Kastrup <redacted>
Tue, 2 Apr 2019 11:56:25 +0000 (13:56 +0200)
committerJunio C Hamano <redacted>
Wed, 3 Apr 2019 07:45:26 +0000 (16:45 +0900)
commitf89201494308524a92eff5995d122e8553c36508
treed8b50bf3f6a35908053acd90eb73ebcab019b488
parentaeb582a98374c094361cba1bd756dc6307432c42
blame.c: don't drop origin blobs as eagerly

When a parent blob already has chunks queued up for blaming, dropping
the blob at the end of one blame step will cause it to get reloaded
right away, doubling the amount of I/O and unpacking when processing a
linear history.

Keeping such parent blobs in memory seems like a reasonable optimization
that should incur additional memory pressure mostly when processing the
merges from old branches.

Signed-off-by: David Kastrup <redacted>
Signed-off-by: Junio C Hamano <redacted>
blame.c
git clone https://git.99rst.org/PROJECT