From: Rob Herring <robh@kernel.org>
To: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
Andrei Ziureaev <andrei.ziureaev@arm.com>,
Masahiro Yamada <masahiroy@kernel.org>
Subject: [PATCH 0/3] DT validation time improvements
Date: Fri, 14 Aug 2020 11:34:14 -0600 [thread overview]
Message-ID: <20200814173417.2322509-1-robh@kernel.org> (raw)
The time to run dt_binding_check and dtbs_check has gotten
significantly slower as the number of schemas has increased. There's 2
main factors causing validation time on each file to be slow.
The first is python start-up time. This is a common problem for python
without much of a solution other than minimizing module imports.
Eliminating some imports was possible for dt-extract-example, but not
the other tools. Validating multiple files in a single call is the
simplest solution. The downside of processing multiple files in one call
is losing make dependency handling. This is not too important for
dt-doc-validate as the validation time is <10 sec.
The 2nd factor is processed-schema*.yaml is now ~2MB and around 2 sec to
parse (which is done for every .dts and example). Switching
processed-schema*.yaml to JSON is much faster to parse
The overall result of these changes is a 2x improvement to dtbs_check
and a 4-5x improvement to dt_binding_check.
Rob
Andrei Ziureaev (1):
dt-bindings: Use json for processed-schema*
Rob Herring (2):
dt-bindings: Bump minimum version of dtschema to 2020.8
dt-bindings: Validate DT binding schema in a single call
Documentation/devicetree/bindings/.gitignore | 1 +
Documentation/devicetree/bindings/Makefile | 45 ++++++++++++--------
scripts/Makefile.lib | 2 +-
3 files changed, 29 insertions(+), 19 deletions(-)
--
2.25.1
next reply other threads:[~2020-08-14 17:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-14 17:34 Rob Herring [this message]
2020-08-14 17:34 ` [PATCH 1/3] dt-bindings: Bump minimum version of dtschema to 2020.8 Rob Herring
2020-08-14 17:34 ` [PATCH 2/3] dt-bindings: Use json for processed-schema* Rob Herring
2020-08-14 17:34 ` [PATCH 3/3] dt-bindings: Validate DT binding schema in a single call Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200814173417.2322509-1-robh@kernel.org \
--to=robh@kernel.org \
--cc=andrei.ziureaev@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome