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 @@ finish:
|
|||||||
}
|
}
|
||||||
for (i = 0; i < num_sg; i++) {
|
for (i = 0; i < num_sg; i++) {
|
||||||
if (sg_origin[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]);
|
blame_origin_decref(sg_origin[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user