Feature Request (for 1.0 as well): add a way to override the GC-perceived top of the stack

downs default_357-line at yahoo.de
Fri Jan 11 11:46:39 PST 2008


Robert Fraser wrote:
> Wouldn't this add the overhead of a function call to every collect cycle?

Yes, but that's hardly a problem.
Besides, if the function is made final, the compiler can inline it, bringing the cost down to a single branch.
And, as naryl said, collect runs aren't frequent enough for it to matter.
It's hardly an inner loop :)

 --downs



More information about the Digitalmars-d mailing list