Dan Sugalski <[EMAIL PROTECTED]> writes: > At 2:30 PM -0500 11/2/04, Matt Fowles wrote: >>All~ >> >>I don't like the idea of having to dig down through the entire return >>chain promoting these guys. Is there a reason not to use DOD/GC to >>recycle continuations? > > Yes. Speed. > > While you can skip some of the digging (since you can stop at the > first promoted one) the reality is that 90%+ of the return > continuations will *never* need promoting. Not bothering to make the > return continuations true full continuations until they're actually > needed as one lets us immediately recycle return continuations as > soon as they're used in the near-overwhelming majority of the cases > -- that is, when nothing can possibly have a hold of 'em. That leaves > a lot fewer objects for the DOD to sweep through, as well as speeding > up allocation (since we're more likely to have ones at hand, and > likely in cache too) of the things in the first place.
And, dammit, making a full continuation isn't something a programmer should do lightly.