lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 8/22/07, Tony Finch <> 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.