summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-07-02 14:00:19 +0200
committerGitHub <noreply@github.com>2024-07-02 14:00:19 +0200
commit2e8b4e660ee23f3ddea490a681f3042a5ae55a57 (patch)
treef34636bd6de6101db175fe89c789fed1d3d0f9c0 /.devcontainer
parent0ca1ee8b91eec07a35b9b9f626945079a2d00bd5 (diff)
downloadspack-2e8b4e660ee23f3ddea490a681f3042a5ae55a57.tar.gz
spack-2e8b4e660ee23f3ddea490a681f3042a5ae55a57.tar.bz2
spack-2e8b4e660ee23f3ddea490a681f3042a5ae55a57.tar.xz
spack-2e8b4e660ee23f3ddea490a681f3042a5ae55a57.zip
spack_yaml: add anchorify function (#44995)
This adds spack.util.spack_yaml.anchorify, which takes a non-cyclic dict/list structure, and replaces identical values with (back) references to the first instance, so that yaml serialization will use anchors. `repr` is used to identify sub-dags, which in principle is quadratic complexity in depth of the graph, but in practice the depth is O(1) so this should not matter. Then this is used in CI to reduce the size of generated YAML files to 30% of their original size.
Diffstat (limited to '.devcontainer')
0 files changed, 0 insertions, 0 deletions