You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace yaml.compose() with a faster event-stream parser that extracts
the first top-level "compatible" scalar without constructing the full
YAML node tree.
This reduces per-file parsing overhead when iterating over thousands of
binding files. Binding files are now opened in binary mode and passed
directly to SafeLoader/CSafeLoader.
Benchmark (Windows, Python 3.12, 2913 bindings):
- before: 874ms, 641862 function calls
- after: 603ms, 188557 function calls
Half of the time is spent opening and closing files, which is quite a
bit faster on Linux.
Signed-off-by: Guðni Már Gilbert <[email protected]>
0 commit comments