Closed zhuxiujia closed 2 years ago
It's very old comparation. you can just ignore that. the TFBshould be a good place to check.
May
is using a scheduler which is something like tokio's "rt-multi-thread"
It's very old comparation. you can just ignore that. the TFBshould be a good place to check.
May
is using a scheduler which is something like tokio's"rt-multi-thread"
Can may
provide type to use a separate runtime for each thread(have no task stealing)? just like actix. In some scenarios, cross-thread stealing is not necessary.
The design was only considering the work stealing pattern. But implement a non work stealing scheduler is possible and may result a huge change of the project. I have no plan to do that.
tokio's example default features is enable
"rt-multi-thread"
We know that when this is enabled, task stealing occurs inside Tokio and this feature severely affects performance (at least twice as slow).may
andTokio
both limit the number of threads and ensure that Tokio uses a single-threaded runtime