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.
## 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._
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.