Skip to content

Conversation

@dwijnand
Copy link
Collaborator

@dwijnand dwijnand commented Jul 6, 2020

  • use info.isJava again, as an initial, shallow, check
  • move power.isJavaDefined as the last, most expensive, check
  • shutdown and reset the compiler after two failures
  • refactor methods & add some comments

Refs #47

* use info.isJava again, as an initial, shallow, check
* move power.isJavaDefined as the last, most expensive, check
* shutdown and reset the compiler after two failures
* refactor methods & add some comments
@dwijnand
Copy link
Collaborator Author

dwijnand commented Jul 6, 2020

cc @exoego do you think you could run this against your codebase to see how it fairs?

If it's easier, instead of having to checkout and publishLocal, I'm happy to merge it and you could try the -SNAPSHOT release that results from merging.

@exoego
Copy link

exoego commented Jul 6, 2020

I will try within a few days.

@dwijnand dwijnand merged commit ec6df52 into lightbend-labs:master Jul 6, 2020
@dwijnand dwijnand deleted the try-to-improve-ExplicitNonNullaryApply branch July 6, 2020 08:56
@exoego
Copy link

exoego commented Jul 6, 2020

@dwijnand
I tried 0.1.1+4-ec6df524-SNAPSHOT and it was much faster !

It completed in 64 seconds on small project, which took 300 seconds + with 0.1.1.
2nd run without no code change completed in 11 seconds.
It also completed in 154 seconds for medium-sized project (50K+ lines of Scala), where OOM had happened with 0.1.1.

@dwijnand
Copy link
Collaborator Author

dwijnand commented Jul 6, 2020

That's great news! I made another improvement in #49, which should publish soon: https://travis-ci.com/github/scala/scala-rewrites/jobs/357887909. I'd be interested to know if and by how much that changes the times.

Thank you for that detail!

edit: version 0.1.1+7-b3c5c8c2-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants