I'm just looking for a rough idea of how much memory is allocated when a custom java object is added to a scope (e.g. ScriptableObject.defineClass()). Assume, for example, that the average object has 5 attributes and 10 functions.
I can either add ~200,000 objects (about 20 objects for each of 10,000 scopes), or I can design the 20 classes to provide static methods and add them once to the root scope and store the state in an external object that the static method can look up at runtime. Either way I will be storing the state of all 200k objects, what I want to decide is whether rhino will demand a significant amount of memory if I add separate instances of the objects to different scopes, which would demand that I take the more complex approach of adding static methods to a root shared scope. Just trying to make a design decision, any thoughts and input are appreciated. Thanks, as always! David _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
