No description
  • Go 97.1%
  • CSS 1%
  • Python 0.8%
  • HTML 0.8%
  • JavaScript 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simão Gomes Viana 9a0853d724
siso: check stored file state only for unrecorded inputs
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
2026-11-16 11:43:27 +01:00
bench [go] update toolchain go 1.26.0 -> 1.26.1 2026-03-05 20:09:06 -08:00
gong gong: Implement initial rspfile support for action() 2026-04-01 00:27:57 -07:00
infra Initial jj config based on chromium/src 2025-10-10 02:32:57 -07:00
kajiya roll github.com/klauspost/compress from v1.18.4 to v1.18.5 2026-03-22 20:09:00 -07:00
kzipinfo [go] update toolchain go 1.26.0 -> 1.26.1 2026-03-05 20:09:06 -08:00
runmc runmc: drop CPUAccounting=yes 2026-03-17 19:20:47 -07:00
siso siso: check stored file state only for unrecorded inputs 2026-11-16 11:43:27 +01:00
.gitignore siso: add .iml to the list of exceptions to allow for Intellij Go integration. 2026-01-05 01:40:53 -08:00
.golangci.yml golangci: forbid os.Lstat in hashfs, SetMaxThreads outside runtimex 2026-11-14 16:32:01 +01:00
.style.yapf Run yapf in presubmit 2025-08-25 23:29:18 -07:00
BUILD_OWNERS Split the owners file into multiple owners files. 2026-01-15 14:41:13 -08:00
BUILD_TEAM_OWNERS Split the owners file into multiple owners files. 2026-01-15 14:41:13 -08:00
CONTRIBUTING.md Minor Markdown reformat, fix outdated reference to Rietveld 2025-09-30 19:54:31 -07:00
LICENSE Copy infra's LICENSE file to go/src/infra/build 2025-07-09 00:11:24 -07:00
OWNERS Split the owners file into multiple owners files. 2026-01-15 14:41:13 -08:00
PRESUBMIT.py [go] update toolchain go 1.26.0 -> 1.26.1 2026-03-05 20:09:06 -08:00
README.md Add links to buildinfra recipes in README.md. 2025-11-03 21:46:25 -08:00
WATCHLISTS Copy infra's LICENSE file to go/src/infra/build 2025-07-09 00:11:24 -07:00

build.git repository

This repository contains tools developed and owned by the Chrome Build Team.

Quick start

The steps for getting the code are:

  1. Install depot_tools
  2. Run git clone https://chromium.googlesource.com/build

We use the standard Go module workflow to work on our projects.