mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 02:48:59 -04:00
Every task completion called _try_claim_and_remove_self, which acquires _scaling_mutex and _threads_mutex even when _remove_count is zero (the steady-state common case). Short tasks paid full mutex overhead per completion. Add a relaxed _remove_count.load before the locks; if it reads zero, skip the claim entirely. A stale zero just defers the claim to a later completion on any worker, matching the existing design where the claim is a cooperative race. |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||