]> source.dussan.org Git - jgit.git/commitdiff
DfsReaderOptions: read loadRevIndexInParallel from config 79/1202479/2
authorIvan Frade <ifrade@google.com>
Fri, 11 Oct 2024 20:25:57 +0000 (13:25 -0700)
committerIvan Frade <ifrade@google.com>
Fri, 11 Oct 2024 20:31:50 +0000 (13:31 -0700)
The options have the field but it isn't loaded from the config. This
forces a workaround downstream.

Read the option from the config, as the others.

Change-Id: I7720812e0577d8f45f6b7f5b8495a8b64729125e

Documentation/config-options.md
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReaderOptions.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java

index 78930e62676851f72b77ec09fcdb76a300cc2be4..eeb78ff55011271b5c142bd2ae4bc19147d6e973 100644 (file)
@@ -31,6 +31,7 @@ For details on native git options see also the official [git config documentatio
 | `core.dfs.blockSize` | `64 kiB` | &#x20DE; | Size in bytes of a single window read in from the pack file into the DFS block cache. |
 | `core.dfs.concurrencyLevel` | `32` | &#x20DE; | The estimated number of threads concurrently accessing the DFS block cache. |
 | `core.dfs.deltaBaseCacheLimit` | `10 MiB` | &#x20DE; | Maximum number of bytes to hold in per-reader DFS delta base cache. |
+| `core.dfs.loadRevIndexInParallel` | false; | &#x20DE; | Try to load the reverse index in parallel with the bitmap index. |
 | `core.dfs.streamFileThreshold` | `50 MiB` | &#x20DE; | The size threshold beyond which objects must be streamed. |
 | `core.dfs.streamBuffer` | Block size of the pack | &#x20DE; | Number of bytes to use for buffering when streaming a pack file during copying. If 0 the block size of the pack is used|
 | `core.dfs.streamRatio` | `0.30` | &#x20DE; | Ratio of DFS block cache to occupy with a copied pack. Values between `0` and `1.0`. |
index 5f5e81977b6a5e86ed506808287a308ab94181bc..c3974691a1be036a0600b46789f53ab1f8dbbe1f 100644 (file)
@@ -13,6 +13,7 @@ package org.eclipse.jgit.internal.storage.dfs;
 import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_CORE_SECTION;
 import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_DFS_SECTION;
 import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_KEY_DELTA_BASE_CACHE_LIMIT;
+import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_KEY_LOAD_REV_INDEX_IN_PARALLEL;
 import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_KEY_STREAM_BUFFER;
 import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_KEY_STREAM_FILE_THRESHOLD;
 import static org.eclipse.jgit.lib.ConfigConstants.CONFIG_KEY_USE_OBJECT_SIZE_INDEX;
@@ -197,6 +198,9 @@ public class DfsReaderOptions {
                setUseObjectSizeIndex(rc.getBoolean(CONFIG_CORE_SECTION,
                                CONFIG_DFS_SECTION, CONFIG_KEY_USE_OBJECT_SIZE_INDEX,
                                false));
+               setLoadRevIndexInParallel(
+                               rc.getBoolean(CONFIG_CORE_SECTION, CONFIG_DFS_SECTION,
+                                               CONFIG_KEY_LOAD_REV_INDEX_IN_PARALLEL, false));
                return this;
        }
 }
index acb54d740561cfe41cd6afacf946dc4b0ebe615d..c5f27688becb794ddbc73a0455925cba54a3c902 100644 (file)
@@ -1027,4 +1027,11 @@ public final class ConfigConstants {
         * @since 7.0
         */
        public static final String CONFIG_KEY_USE_OBJECT_SIZE_INDEX = "useObjectSizeIndex";
+
+       /**
+        * The "loadRevIndexInParallel" key
+        *
+        * @since 7.1
+        */
+       public static final String CONFIG_KEY_LOAD_REV_INDEX_IN_PARALLEL = "loadRevIndexInParallel";
 }