Skip to main content

CONVERSION_STORAGE_CEILING

Constant CONVERSION_STORAGE_CEILING 

Source
pub const CONVERSION_STORAGE_CEILING: usize = 16;
Expand description

What: The most worktrees converted at once however many CPUs and bytes the host has. Why: The conversions are bound by the filesystem’s metadata work, which stops scaling past a point. Measured on 2026-11-03 on a btrfs volume (32 worktrees of about ten thousand files each, 28 threads, other sessions running, medians of three or more runs at 1, 2, 4, 8, 16 and 18 workers: 61, 35, 19, 14, 12 and 12 seconds; further runs at 12, 16 and 24 workers: 11 to 30, 11 to 16 and 16 to 18 seconds): more than sixteen workers were never faster.

In TS you’d write (pseudocode):

const CONVERSION_STORAGE_CEILING = 16;