Hi,

I wonder whether it makes sense to cache wrapAsJavaObject() results in
a HashMap. Key would be the Java object reference, value would be the
Scriptable Wrapper. Both would be weak references.

Did someone already try this? (is the Map/WeakRef overhead worth the
reduced allocation?)

Thanks,
  Helge
--
http://www.helgehess.eu/
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to