_yaml.pyx: Forbid expected_type=Mapping, and remove isinstance check
Calls to `isinstance` can be particularily costly. Using type() is much faster. The only known case where the `isinstance` was useful is for dictionnaries where we would ask for a 'Mapping' instead. Disallowing 'Mapping' for expected_type considerably speeds up the calls to this functions. Also add into NEWS
Loading
-
mentioned in issue #1046 (closed)
-
mentioned in commit bst-plugins-experimental@939344ac
-
mentioned in merge request bst-plugins-experimental!14
Please register or sign in to comment