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

Switch to use nodeJsEnv as default jsEnv to build scala.js #954

Merged
merged 2 commits into from
Mar 28, 2016

Conversation

ngbinh
Copy link
Contributor

@ngbinh ngbinh commented Mar 27, 2016

By default, scala.js compiler uses Rhino as the js environment. But it
usually requires a lot of memory and often lead to OOM. This PR replace
the default to a node.js one that should be much faster and slimer.

By default, scala.js compiler uses `Rhino` as the js environment. But it
usually requires a lot of memory and often lead to OOM. This PR replace
the default to a node.js one that should be much faster and slimer.
@codecov-io
Copy link

Current coverage is 88.93%

Merging #954 into master will not affect coverage as of 7ae514a

@@            master    #954   diff @@
======================================
  Files          179     179       
  Stmts         2133    2133       
  Branches        42      42       
  Methods          0       0       
======================================
  Hit           1897    1897       
  Partial          0       0       
  Missed         236     236       

Review entire Coverage Diff as of 7ae514a

Powered by Codecov. Updated on successful CI builds.

@adelbertc
Copy link
Contributor

Awesome 👍 looks like this helped a lot. Build times are now in the 30 minute range as opposed to 1hr+. Do we want to do this together with #953 in one PR instead (e.g. closing #953 and putting it on this one) since it seems #953 is still suffering from long build times.

@ceedubs
Copy link
Contributor

ceedubs commented Mar 27, 2016

Thanks @ngbinh!

Forgive my ignorance about scala.js: will this affect users Cats scala.js users, or does this only change the environment that our JS tests run in?

The batchMode should help reduce the memory requirement to compile
scala.js code as per
scala-js/scala-js#1788 (comment)

Implementation details: botBuild is a sbt setting that will be turned
on on travisCi so that it will not interfere with local dev experience.
@ngbinh
Copy link
Contributor Author

ngbinh commented Mar 28, 2016

@ceedubs it shouldn't affect scala.js Cats users. It only used a different jsEnv. Scala.js libraries are actually compiled in nodejs environment.

@adelbertc
Copy link
Contributor

Hurrah! 👍

@ceedubs
Copy link
Contributor

ceedubs commented Mar 28, 2016

💯

@adelbertc
Copy link
Contributor

Hmm any ideas why this build is still failing? #941

@ngbinh
Copy link
Contributor Author

ngbinh commented Mar 28, 2016

commented in #941. There is one more thing I'd like to do is upgrading scala.js plugin.

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.

4 participants