Xudong-Huang / may

rust stackful coroutine library
Apache License 2.0
1.93k stars 80 forks source link

about performace.md The description is unfair #90

Closed zhuxiujia closed 2 years ago

zhuxiujia commented 2 years ago

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).

Xudong-Huang commented 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"

zhuxiujia commented 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"

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.

Xudong-Huang commented 2 years ago

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.