Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Documentation/config/gvfs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,13 @@ gvfs.prefetchThreads::
index-pack execution, which can significantly speed up the
installation of multiple prefetch packs. Values less than `1` are
treated as `1`.

gvfs.postThreads::

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this feature ever tend to bottleneck on CPU (ie when indexing pack files) or only on network/remote?

I'm wondering if there'd be any benefit or downside to supporting "values less than 1 are treated as NUMBER_OF_PROCESSORS" like checkout.workers does.

@tyrielv tyrielv Aug 24, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, GVFS uses Environment.ProcessorCount as the default parallelism value for its analogous workflow (gvfs prefetch --files or --folders)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider the "values less than one" option. I worry that the network will saturate at a lower parallelism than the CPU doing pack-indexing.

Set the number of parallel workers used when fetching objects
via HTTP POST requests. Each worker creates its own HTTP
connection and streams the response directly into an
`index-pack --stdin` child process. The default value is `1`,
which processes POST requests sequentially using the existing
code path. Setting this to a higher value (for example `4`)
downloads multiple batches of objects concurrently. Values less
than `1` are treated as `1`.
Loading
Loading