Subj : Re: Pairs of 32-bit pointers To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Sat Dec 13 2003 02:44 pm "Brendan Eich" wrote in message news:3FDB7345.7060206@meer.net... > Now you have tripled the amount of memory. Look: > > Today: obj->slots points to an array of jsvals, one per value. > > Your last post: obj->slots points to an array of twice as many jsvals, > one for type, one for value, etc. Two jsvals per slot where today we > have one. > > Your current post: obj->slots points to an array of jsval pointers, each > element points to the 2nd element of a jsval[2] array. Three jsvals per > slot where today we have one. Sometimes my ideas d/evolve as I express them :) I've been spending more time on the Delphi bridge classes lately, and dealing with garbage collection can get confusing (even after reading the gc article). For the limited needs that I have (and the few users of it) I'm sure it's not a huge issue. It just gave me something to think about. > Counting and estimating space required for basic data structures > is an important skill. Studying the engine has been a good exercise for me in this area, and I've actually improved, so that'll tell you where I was _before_ SpiderMonkey :-) Well, thanks for discussing the idea! Sterling .