commit | 9fd125535ba7ed3f3667a19aa42c340b1c9849af | [log] [tgz] |
---|---|---|
author | twerth <twerth@google.com> | Tue Jan 28 13:12:34 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jan 28 13:13:48 2020 -0800 |
tree | 4d59a2ee7ba6ed8de20c92cea88d4cbf6eed1f9f | |
parent | 3545cb1b5509ad185071c900c621dbfa08767fcb [diff] |
Use allInputs.size() as size hint for the ActionInputMap. Without NestedSet-on-Skyframe, getInputDeps returned a map whose size was equal to the number of all inputs of that specific action. With NestedSet-on-Skyframe, getInputDeps returned a singleton map which was growing over the course of action executions. The resulting size hint was growing with the number of actions being executed (or the total number of inputs), resulting in a ~30% GC tax for big builds. After this CL, the size hint corresponds again to the expected size of the inputs, also for NestedSet-on-Skyframe. RELNOTES: None PiperOrigin-RevId: 291998196
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md