commit | b4060b6e53944a7c3bdc5e62b288e7293a87652a | [log] [tgz] |
---|---|---|
author | nharmata <nharmata@google.com> | Tue Apr 04 17:11:39 2017 +0000 |
committer | Damien Martin-Guillerez <dmarting@google.com> | Wed Apr 05 15:18:20 2017 +0200 |
tree | 59b0f1f3d3e8e99412e060bb98b5a37fe90d9b6e | |
parent | 3ac77cb94a4cf1bd1993a97fe79f2005b2b1a711 [diff] |
Refactor all ctor callsites of PathFragment to instead call a static 'create' method. This paves the way for changing PathFragment to e.g. an abstract class with multiple subclasses. This way we can split out the windows-specific stuff into one of these concrete classes, making the code more readable and also saving memory (since the shallow heap size of the NonWindowsPathFragment subclass will hopefully be smaller than that of the current PathFragment). This also lets us pursue gc churn optimizations. We can now do interning in PathFragment#create and can also get rid of unnecessary intermediate PathFragment allocations. RELNOTES: None PiperOrigin-RevId: 152145768
{Fast, Correct} - Choose two
Bazel is a build tool that builds code quickly and reliably. It is used to build the majority of Google‘s software, and thus it has been designed to handle build problems present in Google’s development environment, including:
A massive, shared code repository, in which all software is built from source. Bazel has been built for speed, using both caching and parallelism to achieve this. Bazel is critical to Google's ability to continue to scale its software development practices as the company grows.
An emphasis on automated testing and releases. Bazel has been built for correctness and reproducibility, meaning that a build performed on a continuous build machine or in a release pipeline will generate bitwise-identical outputs to those generated on a developer's machine.
Language and platform diversity. Bazel's architecture is general enough to support many different programming languages within Google, and can be used to build both client and server software targeting multiple architectures from the same underlying codebase.
Find more background about Bazel in our FAQ.