lesscss-java icon indicating copy to clipboard operation
lesscss-java copied to clipboard

Performance is slow because optimization is turned off

Open chubbard opened this issue 12 years ago • 0 comments

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

chubbard avatar Dec 14 '13 04:12 chubbard