Files
leleka/scripts
Pavlo RatushnyiandClaude Sonnet 5.5 23e7b20dc4 perf(prefill): expert stream issuer thread keeping a bounded copy queue (the Original's D-5)
The host-to-device copy engine is a FIFO: with hundreds of expert copies queued ahead every small
upload or status readback of the compute path waited for the whole queue. A helper thread now keeps
LELEKA_PREFILL_DEPTH (16) entries outstanding on the copy stream (event-query paced) while the
compute thread only waits for an entry's enqueue before ordering its stream after it. The inline
mode stays (LELEKA_PREFILL_ISSUER=inline). Adds the copy-engine contention probe.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-17 17:45:59 +02:00
..