summaryrefslogtreecommitdiffstats
path: root/Documentation/config-options.md
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 /Documentation/config-options.md
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 'Documentation/config-options.md')
-rw-r--r--Documentation/config-options.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/config-options.md b/Documentation/config-options.md
index a9ca48c6a6..19bcc33523 100644
--- a/Documentation/config-options.md
+++ b/Documentation/config-options.md
@@ -102,6 +102,7 @@ Proxy configuration uses the standard Java mechanisms via class `java.net.ProxyS
| `prunePreserved`, only via API of PackConfig | `false` | &#x20DE; | Whether to remove preserved pack files in a preserved directory. |
| `pack.reuseDeltas` | `true` |&#x20DE; | Whether to reuse deltas existing in repository. |
| `pack.reuseObjects` | `true` | &#x20DE; | Whether to reuse existing objects representation in repository. |
+| `pack.searchForReuseTimeout` | | &#x20DE; | Search for reuse phase timeout. Expressed as a `Duration`, i.e.: `50sec`. |
| `pack.singlePack` | `false` | &#x20DE; | Whether all of `refs/*` should be packed in a single pack. |
| `pack.threads` | `0` (auto-detect number of processors) | &#x2705; | Number of threads to use for delta compression. |
| `pack.waitPreventRacyPack` | `false` | &#x20DE; | Whether we wait before opening a newly written pack to prevent its lastModified timestamp could be racy. |