flatcar-scripts/sdk_container
Jeremi Piotrowski 0993a9ada2 profiles: slsa: Remove quadratic complexity in SRC_URI iteration
SLSA provenance generation iterates over $A (which is a subset of $SRC_URI) and
for each of those tries to find a match in $SRC_URI. That's quadratic
complexity, and the performance impact is bad because we shell out to a helper
utility (basename) for every entry. This is leading to long stalls when
generating SLSA for packages with long distfile lists, like go and rust
packages. Iterate over SRC_URI once and create a dictionary to speed up
subsequent lookups. dev-db/etcdctl is a good candidate for testing.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2023-12-06 14:51:17 +01:00
..
.repo/manifests New version: main-3809.0.0-nightly-20231205-2100 2023-12-05 21:00:25 +00:00
src/third_party profiles: slsa: Remove quadratic complexity in SRC_URI iteration 2023-12-06 14:51:17 +01:00