21 Jul
2009
21 Jul
'09
12:21 p.m.
2) chunked-allocated (set aside a bunch, when all are unwound, remove a chunk, before that, mark them unused for re-use) I like that idea. We have no idea about a "normal" stack depth do we?
Not really. This depends on how big our frame objects are, I think.
In that case, especially since the overhead of a single pointer seems small, we should probably use a number a bit large (like 4k?), until people start to complain?
Four thousand frames per chunk? Sounds a bit large off-hand.
I think the right structure to use for (2) would be a linked list of arrays. (How about using Conses to store it?)
Yeah, that sounds doable.