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

_yaml.py: Reduce cost of node_final_assertions


By re-using the isinstance replacements from earlier commits and
using a tuple of the string constants for checking for composition
markers, we reduce the cost of node_final_assertions by two thirds
in basic testing.

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 1c6846f4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment