diff options
author | Ivan Frade <ifrade@google.com> | 2025-03-04 17:23:21 -0800 |
---|---|---|
committer | Ivan Frade <ifrade@google.com> | 2025-03-10 13:08:27 -0700 |
commit | 52dc9fdd0d65fa06d6c98072a16b181a024c533b (patch) | |
tree | ac2bc1353004edc4073d880edb6ce7b3a3fb32eb /org.eclipse.jgit.ssh.apache.agent/META-INF | |
parent | 6c129d2833377004a1273f53c18d1efe0e86dbdf (diff) | |
download | jgit-52dc9fdd0d65fa06d6c98072a16b181a024c533b.tar.gz jgit-52dc9fdd0d65fa06d6c98072a16b181a024c533b.zip |
BlameGenerator: Use cache only for candidates modifying the path
BlameGenerator is querying the cache on each candidate from the
queue. i.e. on every commit in the history that contains the path. The
cache call is expensive and, in long histories with poor cache
coverage, the blame becomes slower than without cache.
Query the cache afer we know the candidate modified the file but
before doing the actual blame. In other words, ignore the cache if the
commit doesn't modify the file.
Compared with previous code, this skips the cache for the commit that
creates the file and for the root commit (blame is that commit, so no
performance loss).
Change-Id: I0fd7279026a30505742527e84f13680b843ad4a3
Diffstat (limited to 'org.eclipse.jgit.ssh.apache.agent/META-INF')
0 files changed, 0 insertions, 0 deletions