Performance issue with fiber

Denis Feklushkin denis.feklushin at gmail.com
Wed Jul 28 01:12:16 UTC 2021


On Monday, 26 July 2021 at 12:09:07 UTC, hanabi1224 wrote:
> Thank you for your response! I've got some questions tho.
>
> On Saturday, 24 July 2021 at 09:17:47 UTC, Stefan Koch wrote:
>
>> It will not use a fiber pool.
>
> Why fiber pool? Isn't fiber a lightweight logical thread which 
> is already implemented with thread pool internally?

Spawning fiber is expensive (but not so expensive as spawning 
thread, of course), but switching is fast.

Thus, you can spawn and pause "workers" fibers for avaiting of 
jobs.
(Probably, this behaviour is already implemented in number of 
libraries and it isn't actually need to implement another one.)


More information about the Digitalmars-d-learn mailing list