devzyc / GradleBuildExperiment

Android experiment that clarify dependency between amount of modules and build time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GradleBuildExperiment

Android experiment that clarify dependency between amount of modules and incremental build time. You can find more details and results of this experiment here.

Problem

If in a single-module project one class is changed, gradle have to recompile the whole project.

Hypothesis

Incremental build for a project with multiple modules is faster then for a single-module project, because only modified modules are recompiled while the rest — not.

Structure

Every branch will have it's own configuration. All configurations has around 90 000 methods splitted among 15 000 classes. Configurations are listed roughly in order they mentioned in the article.

Results

Below you can find final results for incremental build time. For best case it was reduced from 1m 10s to 17s. For more explanation please read the article. Results

About

Android experiment that clarify dependency between amount of modules and build time.

License:MIT License