vaquarkhan commented on PR #836:
URL: https://github.com/apache/burr/pull/836#issuecomment-5031084362

   Ran this locally, whole parallelism suite passes and the new streaming tests 
were stable across a few reruns. Love this, been wanting interleaved parallel 
streams for a while.
   
   **Couple thoughts, all follow-up not blocking:**
   
   - Tasks get materialized all at once (async spawns a coroutine per task, 
sync lists them all), so big fan-outs could kick off a lot at once. A 
max-in-flight option would help.
   - The result queue is unbounded, so a slow consumer could let memory grow. A 
cap would give you backpressure for free.
   - The get(timeout=0.01) poll loop spins a bit and adds ~10ms of delivery 
latency. A blocking get with a done-sentinel would be smoother.
   - Might be worth a test or two for the unhappy paths (a task throwing 
mid-stream, empty task list).
   
   Also heads up, moving to SingleStepStreamingAction flips all the Map* 
subclasses to streaming=True. Non-streaming still works, just noting it. LGTM.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to