commit | 937efab2e60b0fdcb623b31032f6624bff792aa8 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Jan 23 13:24:26 2019 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Jan 23 13:26:42 2019 -0800 |
tree | 1d8d46f7892b8eb115ffd312eebf2b6b9ab0bdb4 | |
parent | de7afaaf749957b3b7c03036e36c99a5ac7e3afb [diff] |
Use sync.Map for type field cache The type field cache was using an atomic pointer to an immutable map, which required copying the entire map each time a cache entry was added. Profiling showed that this was a significant hot spot. Use sync.Map instead. Change-Id: Ie7c779c5e9e2be1cd530747d74025dcfd206763a
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.