mirror of
https://github.com/git/git.git
synced 2024-05-28 09:16:10 +02:00
Merge branch 'dk/blame-keep-origin-blob'
Performance fix around "git blame", especially in a linear history (which is the norm we should optimize for). * dk/blame-keep-origin-blob: blame.c: don't drop origin blobs as eagerly
This commit is contained in:
commit
4d8c4da950
3
blame.c
3
blame.c
|
@ -1562,7 +1562,8 @@ static void pass_blame(struct blame_scoreboard *sb, struct blame_origin *origin,
|
|||
}
|
||||
for (i = 0; i < num_sg; i++) {
|
||||
if (sg_origin[i]) {
|
||||
drop_origin_blob(sg_origin[i]);
|
||||
if (!sg_origin[i]->suspects)
|
||||
drop_origin_blob(sg_origin[i]);
|
||||
blame_origin_decref(sg_origin[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue