Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompile CoffeeScript to reduce startup time #490

Conversation

jannehietamaki
Copy link

I might be spoiled by V8/Node, but when developing with coffee I got a bit annoyed by the startup time.

This change precompiles coffee-script.js to a Java class, and reduces the coffee startup time by a bit over a second on my laptop.

@jannehietamaki
Copy link
Author

Btw, this is no longer required when using Rhino 1.7R4 as it can split code into smaller chunks to avoid JVM 64k method size limit.

context.setOptimizationLevel(-1); // Without this, Rhino hits a 64K bytecode limit and fails

purplefox added a commit that referenced this pull request Jan 13, 2013
…imization

Precompile CoffeeScript to reduce startup time
@purplefox purplefox merged commit e80092a into eclipse-vertx:master Jan 13, 2013
purplefox added a commit that referenced this pull request May 10, 2013
…imization

Precompile CoffeeScript to reduce startup time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants