Fixed queue capacity 100 may cause pipeline stalls for varied file sizes #108
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
With capacity 100 in both queues and ~10MB chunks, the pipeline can hold ~1GB of data in flight. But for many small files, the scanner fills the queue quickly and blocks, then the loader drains it. The fixed size does not adapt to file sizes, causing unnecessary stalls.
Location
src/client/client_send.c:521-522
Suggested Fix
Make queue capacity dynamic based on total bytes in queue rather than item count. Or use a two-threshold system: minimum capacity 100 but grow as needed up to a max memory limit.
Severity
medium
Category
performance
Sub-Agent
perf-analyst (PA-3)
This issue was automatically generated by the issue-creator agent.
Fixed in PR #148 — merged into main on 2026-07-29.