On Oct 23, 4:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I'm reading in bunch of scripts using ctx.compileReader (and execute
> them of course)
> At some point I call a function on MyParentObject that returns another
> object (lets say MyObject)
> How can I serialize this MyObject?
>
> I have read the serialization part in documentation and it does not
> appear to be possible. MyObject is not linked to MyParentObject in any
> way.
>
> If this info is not sufficient please let me know so I could create
> some sample code.

I tried evaluating the source string of my final object and noticed
that every evaluation caused new classes to be loaded in memory and
that's not a good thing. Is there a way to serialize javaScriptt
object so that deserialization would not cause new classes to be
loaded. Newly loaded classes go to PermGen and are hard to collect.

It takes quite a bit work to produce my final object in javaScript and
it would be great if I could cache the resulting object to disk.
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to