Skip to content

dt-bindings: Improve yamllint performance

Geert Uytterhoeven linux-devicetree lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Changes compared to v1 from the cover letter

- New patch to parallelize yamllint,
- Introduce find_all_cmd,
- Only use the restricted set for yamllint.

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: Parallelize yamllintDocumentation/devicetree/bindings/Makefile+1 -11 reply
2/2dt-bindings: Consider DT_SCHEMA_FILES when finding all json-schemaDocumentation/devicetree/bindings/Makefile+10 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] dt-bindings: Improve yamllint performance

Hi Rob,

This series improves yamllint performance by parallelizing the operation, and by restricting the checked files to those specified using DT_SCHEMA_FILES.

Changes compared to v1:
- New patch to parallelize yamllint,
- Introduce find_all_cmd,
- Only use the restricted set for yamllint.

I've been using this for the past 6 months, as it helps a lot when writing or updating DT bindings. Combined, this reduces the execution time of

make dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/your/binding/file.yaml

from ca. 30 to 10 s on i7-8700K.

Thanks for your comments!

Geert Uytterhoeven (2):
dt-bindings: Parallelize yamllint
dt-bindings: Consider DT_SCHEMA_FILES when finding all json-schema

 Documentation/devicetree/bindings/Makefile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
Signature · 12 lines
2.25.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds