forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: edtlib/extract_dts_includes.py: Speed up 2x+ with yaml.CLoader
Use the LibYAML-based yaml.CLoader if available instead of yaml.Loader, which is written in Python and slow. See https://pyyaml.org/wiki/PyYAMLDocumentation. This speeds up gen_defines.py from 0.2s to 0.07s on my system, for -DBOARD=hifive1. It should also make scripts/kconfig/kconfig.py faster, because it indirectly uses edtlib via scripts/kconfig/kconfigfunctions.py. yaml.CLoader seems to be available out of the box when installing with pip on Ubuntu at least. Helps with zephyrproject-rtos#20104. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
- Loading branch information
Showing
2 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters