aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/resources/org
diff options
context:
space:
mode:
authorFabio Ponciroli <ponch78@gmail.com>2021-06-03 16:15:17 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2021-06-25 17:57:59 +0200
commit6976a30f443ece4815a977b0a5a897c0236018f7 (patch)
tree24309a81a94c81456c96fd888e009daa10f77266 /org.eclipse.jgit/resources/org
parentf598e69529e0a1864e8224265ed82326f2a296f5 (diff)
downloadjgit-6976a30f443ece4815a977b0a5a897c0236018f7.tar.gz
jgit-6976a30f443ece4815a977b0a5a897c0236018f7.zip
searchForReuse might impact performance in large repositories
The search for reuse phase for *all* the objects scans *all* the packfiles, looking for the best candidate to serve back to the client. This can lead to an expensive operation when the number of packfiles and objects is high. Add parameter "pack.searchForReuseTimeout" to limit the time spent on this search. Change-Id: I54f5cddb6796fdc93ad9585c2ab4b44854fa6c48
Diffstat (limited to 'org.eclipse.jgit/resources/org')
-rw-r--r--org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
index 962324e0f7..848d20aba9 100644
--- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
+++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
@@ -632,6 +632,7 @@ s3ActionWriting=Writing
searchForReachableBranches=Finding reachable branches
saveFileStoreAttributesFailed=Saving measured FileStore attributes to user config failed
searchForReuse=Finding sources
+searchForReuseTimeout=Search for reuse timed out after {0} seconds
searchForSizes=Getting sizes
secondsAgo={0} seconds ago
selectingCommits=Selecting commits