Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Performance is slow because optimization is turned off #40

Open
chubbard opened this issue Dec 14, 2013 · 0 comments
Open

Performance is slow because optimization is turned off #40

chubbard opened this issue Dec 14, 2013 · 0 comments

Comments

@chubbard
Copy link
Collaborator

In the source code it explicitly turns off optimization with this line:

cx.setOptimizationLevel(-1);

This is because env.js is too large for the 64KB bytecode limit. However, if you split the files up like what is suggested here you can turn back on optimization and get better performance:

http://stackoverflow.com/questions/9779809/how-to-split-iife-to-fit-into-java-jvm-rhino-64k-bytecode-limit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant