GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — Keep forked Java compilers around after a build if requested by octylFractal · Pull Request #21034 · gradle/gradle Conversation
Member
This results in significant performance improvements when repeatedly running builds by allowing us to re-use the JITed code from the already running The benchmarks can be found attached, they were run on the latest nightly (7.6-20220615224043+0000) and this branch which was near the same commit as the nightly. I would like to get a confirmation from the @gradle/bt-execution team that there are no known problems with this. Otherwise, this seems like a fairly straightforward performance win to me.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
We haven't done this yet for a number of reasons, despite the obvious benefits. If we want to keep compiler (or other) forked processes running between builds (=forked daemons), then we need better memory and child-process management. Users might end up with multiple Gradle daemons starting many forked daemons that end up taking up all the available memory. There needs to be a way to detect and kill forked daemons that somehow got in a deadlock, or developed a memory leak, too. It would be great if we could share forked daemons between Gradle daemons, too, though that's not a strict dependency of rolling this out. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Taking a step back, I think doing the benchmark is already a step forward. We now moved from our anecdotal/self-convinced confidence about the potential improvements we could get by doing this, and confirmed/quantified it with a benchmark. One option could be to do something similar to Scala, and allow users to enable the long-lived compiler daemons already. I think we need to be careful here, though, as doing so can lead to hard to debug problems. But it would be good to get some user feedback about how useful this could be in the field, so putting this behind a feature flag might be something we could do. I would only do this, though, if we are actually planning to implement the memory/child-process management features soon after. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be closed if no further activity occurs. If you intend to work on this pull request, please ask the team to reopen the PR or push a new PR. Thank you for your contributions. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
27ce800 to
e36795c
Compare
There was an error while loading. Please reload this page.
|
@bot-gradle test and merge |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
No milestone for this PR. Please set a milestone and retry. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@bot-gradle test and merge |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've triggered a build for you. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.