Performance issue with fiber

James Blachly james.blachly at gmail.com
Wed Jul 28 13:47:45 UTC 2021


On 7/27/21 9:12 PM, Denis Feklushkin wrote:
> 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.)

Agree with sibling comment by hanabi1224: spawning fiber (in other 
language runtimes) is INCREDIBLY fast, even though they have stack.

Something is wrong here.


More information about the Digitalmars-d-learn mailing list