[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Abominations of nature (was: Features you would like to see)
- From: "Alex Queiroz" <asandroq@...>
- Date: Wed, 22 Aug 2007 11:13:21 -0300
Hallo,
On 8/22/07, Tony Finch <dot@dotat.at> wrote:
>
> First class continuations are lots of fun, but they have serious
> performance implications. If you implement them by putting all activation
> records on the heap, then you seriously stress the garbage collector, some
> CPU caches will go seriously slow because of the way they handle write
> misses, and (if you compile to native code) you won't be able to benefit
> from call stack optimisations.
>
As the paper I posted to another thread shows, it's possible to
use the native execution stack to store continuations. The New Jersey
Standard ML and Chicken Scheme compilers use the technique.
Cheers,
--
-alex
http://www.ventonegro.org/