Instead of batching the list items, change the batch size to a parallelism limit and run up to that many fibers. When the processing of one list item finishes, another will then start immediately after, rather than when the whole batch is finished. These changes also make the fibers-map and fibers-for-each operations work with vectors as well as lists. |
||
---|---|---|
.. | ||
non-blocking.scm | ||
parallelism.scm | ||
promise.scm | ||
queue.scm | ||
resource-pool.scm | ||
timeout.scm | ||
web-server.scm | ||
worker-threads.scm |