| commit | 94cf29c120539967b105acc75bdce070e43aa778 | [log] [tgz] |
|---|---|---|
| author | nharmata <nharmata@google.com> | Tue Feb 27 09:19:54 2018 -0800 |
| committer | Copybara-Service <copybara-piper@google.com> | Tue Feb 27 09:22:08 2018 -0800 |
| tree | 1617ef76049a5786c3d4393ec39842d0a15cd1d1 | |
| parent | 7f16496cc027110d37247854115ab68e4c83baa2 [diff] |
Optimize Path (and the underlying String) allocations in UnixGlob for the case where a pattern like '*.blah' doesn't match all the dirents. Before the recent Path.java rewrite, the unconditional allocation here was free/amortized (in the sense that if Blaze ever had to consider the path in question, then we'd be doing the Path allocation anyway and caching the object). But now it's potentially GC churny, especially in the case where a single BUILD file has multiple glob expressions. RELNOTES: None PiperOrigin-RevId: 187185573
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds 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
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.