Twitter | Pretraživanje | |
Tokio
One foot gun when using Tokio is not yielding. This prevents other tasks from running and can result in large tail latencies. We think we can do better. is proposing a strategy to coordinate task yielding
Motivation A single call to poll on a top-level task may potentially do a lot of work before it returns Poll::Pending. If a task runs for a long period of time without yielding back to the executor...
GitHub GitHub @github
Reply Retweet Označi sa "sviđa mi se" More
William Saar 23. sij
Odgovor korisniku/ci @tokio_rs @carllerche @jonhoo
Great! Have had to insert minimal timeout returns when polling, this would basically mean replacing the timeouts with preempt calls until the preemption gets integrated with Tokio's futures?
Reply Retweet Označi sa "sviđa mi se"
Carl DB 23. sij
Odgovor korisniku/ci @saarw @tokio_rs @jonhoo
In theory! We are still in the early exploration stages, but would love to hear use cases. Please comment in the PR with the case you had.
Reply Retweet Označi sa "sviđa mi se"