Skip to content

scripts: hwmv2: cache pykwalify validators #90644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kartben
Copy link
Collaborator

@kartben kartben commented May 27, 2025

speed up the various list_*.py scripts by means of caching the pykwalify core object so that schemas don't get unnecessarily processed multiple times.

This saves ~100-200ms on list_boards.py execution time (YMMV of course) which I'll happily take :)

@kartben kartben force-pushed the list_boards_speedup branch 2 times, most recently from 7285046 to 1903267 Compare May 27, 2025 08:16
speed up the various list_*.py scripts by means of caching the
pykwalify core object so that schemas don't get unnecessarily
processed multiple times.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
@kartben kartben force-pushed the list_boards_speedup branch from 1903267 to 0216583 Compare May 27, 2025 08:16
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@kartben kartben marked this pull request as ready for review May 27, 2025 09:08
@kartben kartben requested a review from pdgendt May 27, 2025 09:08
@kartben
Copy link
Collaborator Author

kartben commented Jun 3, 2025

@tejlmand ping - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants