Skip to content
Snippets Groups Projects
Commit d0485038 authored by Daniel Silverstone's avatar Daniel Silverstone
Browse files

element.py: Alter Element.__calculate_cache_key() to pre-santize inputs


In order to reduce the effort we spend in `_yaml.node_sanitize()` take
advantage of how `OrderedDict` works and pre-sanitize the majority of
the cache-key once.  This approximately halves the amount of effort we
spend in `_yaml.node_sanitize()` in pre-scheduler build scenarios.

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 383ae15c
No related branches found
No related tags found
Loading
Pipeline #35889536 failed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment