Skip to content
Commit fa9c3c6c 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 f924811a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment