Hello:
I intend to use Rhino in my HTTPServlet methods to execute a javascript
everytime user request a url. But according to doc, for every method call,
I have to first use Context.enter()/Scrope/ before eval the same static
script
again and again. This is to meet the requirement that Context must be
created
for each thread and due to servlet model, this incurs huge overhead for
performance,
particularly when many users hits the url at the same time. Is there a way
to have a precompiled form of the Javascript file created only once and
used
for multple thread? The script file itself can be assumed static and no
need for
implementing dynamic reload, which would make it easier.
Thanks very much
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino