Skip to content
Snippets Groups Projects
Commit 967e865a authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

cbus: add a single idle timer, chain up coro_transfer in fiber pool

- don't use fiber_yield_timeout, it's too slow; use a single
idle timer and invoke the fiber which hasn't been invoked for longest
period so that it can time out

- chain up the running fibers in a pool so that coro_transfer()
goes to the next fiber, not to the sched fiber, most of the time

This together improves cbus speed and reduces CPU spent in
coro_transfer().
parent 76c82460
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment