Skip to content

Conversation

@glandium
Copy link
Contributor

With an increasing number of docker images, the overhead of hashing the compressed contents of the docker context tars becomes visible when loading the toolchain kind during Firefox builds. But the really interesting part for the hash is the uncompressed contents. Whether they are compressed with gzip at level 9, gzip level 1, bz2 or zstd, it doesn't matter for the resulting docker image. So it makes sense to only hash the uncompressed contents, which is much faster.

The fourth argument is args, meant to be a dict.
With an increasing number of docker images, the overhead of hashing the
compressed contents of the docker context tars becomes visible when
loading the toolchain kind during Firefox builds. But the really
interesting part for the hash is the uncompressed contents. Whether they
are compressed with gzip at level 9, gzip level 1, bz2 or zstd, it
doesn't matter for the resulting docker image. So it makes sense to
only hash the uncompressed contents, which is much faster.
@jcristau jcristau merged commit 3001078 into taskcluster:main Jan 15, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants