PinDroid icon indicating copy to clipboard operation
PinDroid copied to clipboard

Improve GRADLE build Performance

Open ChenZhangg opened this issue 2 years ago • 0 comments

Parallel test execution maxParallelForks. Gradle can run multiple test cases in parallel by setting maxParallelForks.

Disable report generation. We can conditionally disable it by setting reports.html.required = false; reports.junitXml.required = false. If you need to generate reports, add -PcreateReports to the end of Gradle's build command line.

Process forking options. Gradle will run all tests in a single forked VM by default. This can be problematic if there are a lot of tests or some very memory-hungry ones. We can fork a new test VM after a certain number of tests have run by setting forkEvery.

Incremental compilation. Gradle recompile only the classes that were affected by a change. This feature is the default since Gradle 4.10. For an older versions, we can activate it by setting options.incremental = true.

===================== If there are any inappropriate modifications in this PR, please give me a reply and I will change them.

ChenZhangg avatar Oct 13 '21 09:10 ChenZhangg