Toomas Altosaar Toomas.Altosaar@hut.fi writes:
I could indeed have extra yields be added automatically, but that may be more tricky than you make it sound (or maybe I'm misinterpreting). For example, putting a yield in a tight loop might kill performance, and not putting it there might kill cooperation. Trying to solve this would bring us pretty close to the above reduction counter, wouldn't you agree?
Have you tried ...
I have not tried anything at all so far. I've been swamped in schoolwork. Should be better in a week or two though.
... yielding only on function entry and all backward branches?
Hadn't thought of that yet. Thanks for the tip.
Kind regards,
Dirk Gerrits