commit | c93490c67911dc05c84845ef1cc433ffdf2b2756 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Aug 09 14:21:02 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Aug 10 16:31:35 2016 -0700 |
tree | 1537e0e351bbd44f43c130cdf0490e7af603dde5 | |
parent | 49c279ab2614c8bc614f93e13c6137887c0ab395 [diff] |
Parallelize cloneModules cloneModules duplicates every module, which can be slow. Spawn a new goroutine for each module to spread the factory and CopyProperties calls over multiple cpus. Change-Id: I2597f921dadfd321ccb705aec9a904c71b75f9ef
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja manifest describing the commands that need to be run and their dependencies. Where most build systems use built-in rules or a domain-specific language to describe the logic for converting module descriptions to build rules, Blueprint delegates this to per-project build logic written in Go. For large, heterogenous projects this allows the inherent complexity of the build logic to be maintained in a high-level language, while still allowing simple changes to individual modules by modifying easy to understand Blueprints files.