No description
- Go 97.1%
- CSS 1%
- Python 0.8%
- HTML 0.8%
- JavaScript 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
newestStepInput combined trigger inputs and deps-log entries into a single-use sequence. hashFS.CheckStored and newestInput each iterated that sequence, so the deps-log entries were decoded twice. Every input went to CheckStored, even inputs already recorded in b.targets. loadTargetState returns a recorded state without reading the file, so the check did nothing for those inputs. The inputs are now collected into a slice on one pass. Only inputs without a recorded state in b.targets go to CheckStored, and newestInput iterates the collected slice. This change adds a filterUnrecordedInputs method to Builder. The method returns an iterator over the inputs not present in b.targets. newestStepInput calls slices.Collect to materialize the input sequence into a slice, passes the filtered iterator to CheckStored, and passes the slice to newestInput through slices.Values. In a no-op ROM build where zero steps run, the siso run took 114 s, 44 s of it in the up-to-date check. A CPU profile of the last 94.6 s showed newestStepInput at 56 % of samples, CheckStored at 45 %, building full paths at 28 %, memory allocation at 27 % and decoding the deps log at 38 %. Steps with inputs already recorded in b.targets now skip the path building, the allocation and the comparison against stored state that CheckStored does for each input. The deps log is decoded once per step instead of twice. Test: go test ./build/ (passed) Category: build optimization |
||
| bench | ||
| gong | ||
| infra | ||
| kajiya | ||
| kzipinfo | ||
| runmc | ||
| siso | ||
| .gitignore | ||
| .golangci.yml | ||
| .style.yapf | ||
| BUILD_OWNERS | ||
| BUILD_TEAM_OWNERS | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| OWNERS | ||
| PRESUBMIT.py | ||
| README.md | ||
| WATCHLISTS | ||
build.git repository
This repository contains tools developed and owned by the Chrome Build Team.
Quick start
The steps for getting the code are:
- Install depot_tools
- Run
git clone https://chromium.googlesource.com/build
We use the standard Go module workflow to work on our projects.