-
Notifications
You must be signed in to change notification settings - Fork 279
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
ScalafmtRunner: use Future, not .par
#4743
Conversation
c54b00d
to
e5469dd
Compare
.par
.par
termDisplay.stop() | ||
exitCode.get() | ||
runInputs(options, inputMethods, termDisplayMessage) { inputMethod => | ||
import org.scalafmt.sysops.PlatformCompat.executionContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curiously, do we also enable multithreading in Scala Native as well this way? Maybe we don't need the separate executionContext anymore?
Maybe we can remove compatPar now also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- during building i see messages about multithreading enabled, perhaps we could somehow make it explicit
- compatPar will be removed but this is not the last place yet
- executionContext I'd keep in case we want to define a custom (i was playing with it) or support scala.js (it uses a different one)
i can't see much difference in speed in community test running, but it felt to me much faster when i ran the result of sbt cli/assembly
with local snapshot version (forcing core runner, instead of dynamic).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
during building i see messages about multithreading enabled, perhaps we could somehow make it explicit
I think it's automatically disabled when not needed, so no need to make it explicit I guess?
i can't see much difference in speed in community test running, but it felt to me much faster when i ran the result of sbt cli/assembly with local snapshot version (forcing core runner, instead of dynamic).
Och, interesting! Do you mean the JVM version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, the JVM. native was even faster but i didn't check how native performed without this change.
No description provided.