Skip to content

Rename batch_size config to queue_size and set better defaults - #125

Merged
lfoppiano merged 3 commits into
masterfrom
feature/rename-queue-size
Aug 18, 2026
Merged

Rename batch_size config to queue_size and set better defaults#125
lfoppiano merged 3 commits into
masterfrom
feature/rename-queue-size

Conversation

@lfoppiano

Copy link
Copy Markdown
Member

The batch_size parameter name is misleading, the value controls how many files are queued per processing chunk, not a batch or thread pool size. Renamed across config, client API, tests, and README.

Old config files using batch_size are still accepted with a deprecation warning.

The value controls how many files are queued per processing chunk, not a
batch or thread pool size. Renamed across config, client API, tests, and
README. Old config files using batch_size are still accepted with a
deprecation warning.
@lfoppiano
lfoppiano force-pushed the feature/rename-queue-size branch from caffcc8 to 849ec67 Compare August 18, 2026 09:36
With a fixed default of 10, running with a higher --n left most of the
thread pool idle (effective parallelism is min(n, queue_size)). An unset
queue_size now resolves to n at processing time, so the pool is never
starved by the default. An explicit config or constructor value still
takes precedence.
@lfoppiano lfoppiano changed the title Rename batch_size config to queue_size Rename batch_size config to queue_size and set better defaults Aug 18, 2026
An unset queue_size now defaults to 1000 for local directories (where the
queue holds only file paths, as it historically did) and to 1.2 * n for
archive and s3 streaming (where a whole chunk is materialized in memory),
keeping 20% headroom over the thread pool. The queue_size entry was
dropped from the shipped config.json so these defaults apply out of the
box, and the README gains a "Choosing a queue size" section with tuning
guidance.
@lfoppiano
lfoppiano merged commit 02be697 into master Aug 18, 2026
9 checks passed
@lfoppiano
lfoppiano deleted the feature/rename-queue-size branch August 18, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant