Note on Informed Poll via pigweed.dev
The central idea is that asynchronous work is encapsulated in objects called Tasks. Instead of registering callbacks for different events, a central Dispatcher polls these tasks to see if they can make progress. The polling is informed because the task coordinates with its event source regarding when it’s ready to make more progress. The event source notifies the dispatcher when the task is ready to proceed and therefore should be polled again.
This is kinda the approach taken by io_uring in polling for changes as a faster way to batch work instead of a purely event-driven system of high throughput.
Reference
- Notes
- performance, queues
- Informed Poll
-
Permalink to
2025.NTE.142
- Edit
← Previous | Next → |
Note on Sources Say Bay Area House Party via Scott Alexander |