Hi,

I am curious on exactly how much memory an empty JS Object instance is 
using in v8. How would I go about measuring this value? I am interested in 
both 32bit and 64bit builds.

For example:

function Test() { }
var t = new Test; // The memory size of "t" instance internally?

>From the API I can see that each instance has an internal "hash value" 
(ID). Also, it probably needs to store the [[Prototype]]. So that's two 
numbers (the size of a pointer?).

And do I win any memory savings if I construct objects without the 
prototype. As in:

... = Object.create(null);

And how are object references implemented? I assume they are essentially 
pointers internally?

Thanks for any help in figuring this out,
Simas

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to