Fiber overhead

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 3 22:54:01 PST 2017


On 02/03/2017 08:47 PM, Profile Anaysis wrote:
> What is the overhead of using a fiber?

The performance overhead of call() and yield() are comparable to 
function calls because it's simply a few register assignments in each 
case. (Change the stack pointer, etc.)

Memory overhead is memory for call stack, size of which can be 
determined by the programmer.

Ali



More information about the Digitalmars-d-learn mailing list