| commit | 46aff0e393182b568a6b81021adc4d6f29c38dc4 | [log] [tgz] |
|---|---|---|
| author | jhorvitz <jhorvitz@google.com> | Mon Jun 28 07:15:39 2021 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Mon Jun 28 07:17:00 2021 -0700 |
| tree | 7f1005929865fff44ef76a3ce3f6ee1c2edfa418 | |
| parent | d5d3d9bfa04d038613b3869d6e77ca7c847b8d12 [diff] |
Improve creation of `Label` and `RepositoryName` instances. In `Label#getRelativeWithRemapping`, when the current label is in the main repository, default the new label to the main repo as well. This saves the intermediate step of creating (and interning) a garbage `Label` with the default repository, only for `resolveRepositoryRelative` to subsequently create another `Label` in the main repo. In `RepositoryName#create`, optimize for the common repository names (default and main) by skipping the interner cache and other unnecessary checks. PiperOrigin-RevId: 381857421
{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