Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2877483pxb; Mon, 18 Oct 2021 03:57:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGIUT780GO2u6uOcSl7eqQANGmn2w7xqhfzMosAsS6iAv8ZYxm0BEZBVcQEGbT8eaWh1sX X-Received: by 2002:a17:90a:c08d:: with SMTP id o13mr47429424pjs.181.1634554620187; Mon, 18 Oct 2021 03:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634554620; cv=none; d=google.com; s=arc-20160816; b=HNx0EKqDjtgiYApyd3LwiG9+qx8Go7EZykLf7KrQj8POiVlFcgIbcmk2vR2w3jqsZh 16VzF/8dcrAziPA6GFhE47s7qp2/lcn+HzHvKzldfYJd6ZW2GdSoy+1o1i/5JFdtS4ST gVxaVcCvbNtRQjnS4AN8b0fHFNR3eCq1D8NVghBoaqMHahCEGcT3UTJDXBQaW7vnKfbJ AUHGBKly9f4qivW+YnIiiCnGOyU8gl5D+Fn4y5+pJD2TDTN605rgU7tK2u69Y/eq/xRe 19iZ3eVsKv1HLxrpG3HRJwb+bjD6g+XjzgEPIgOnl6YUTe0aKhaaUMPurSXxrxEN+5+j ePYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=+m6+y601ZTIsCgJwRL9CH5Ren124JdOfYAoEPhBIDU0=; b=ZLbaKXXimMqkX7J3tg3YarXUc/RT19wYn28gnu7c8uP6ftey8sPWDjpetI0dXSDfw5 BbhoibRFJhInX83DcI7ckgymtBuLMzIO7ofKeF+lE1RgqwnqvT7wNE1SEa3S9Af13UER 5oleTzZKDJbl98j6yaqXBeDrRsIWW/RpwH6dCD+Gs/NyhUWtMRVTLvqmmFxrq/1GGyBX oAnjueb5bScR/qmvlBR3PKXhMBTUF7nrwPEl2k/T8teP7AkvtQ40GLk2bHBDoxbMYU7r ChxFDmDj9FlpdK7QBj6HsBulz5Yda1GliTSNRp4Xg949qZ5y8GZZNcrvSKUXPKz+rF9o rEEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si20707328plk.192.2021.10.18.03.56.47; Mon, 18 Oct 2021 03:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229837AbhJRK5L (ORCPT + 99 others); Mon, 18 Oct 2021 06:57:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbhJRK5E (ORCPT ); Mon, 18 Oct 2021 06:57:04 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73D59C061714 for ; Mon, 18 Oct 2021 03:54:53 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:e87a:7c37:aec5:5884]) by andre.telenet-ops.be with bizsmtp id 7Nuq2600P22VXnz01Nuq2g; Mon, 18 Oct 2021 12:54:50 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mcQI5-005sWI-T1; Mon, 18 Oct 2021 12:54:49 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mcQI5-00DbGP-E1; Mon, 18 Oct 2021 12:54:49 +0200 From: Geert Uytterhoeven To: Rob Herring Cc: Stephen Boyd , Joey Gouly , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/2] dt-bindings: Improve yamllint performance Date: Mon, 18 Oct 2021 12:54:46 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.25.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org 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