Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2474175ybi; Mon, 17 Jun 2019 05:33:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRpcKHjQrI5ZYcmcXDvnrJpk+q4EXFvbHZp3AmV7qEUQ6g7TssKbD6MRQNyRUw4hwITKoO X-Received: by 2002:a62:e910:: with SMTP id j16mr11467445pfh.123.1560774825255; Mon, 17 Jun 2019 05:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560774825; cv=none; d=google.com; s=arc-20160816; b=quyDGLTN45XGC5Hgw1cPDNhWBsoqIGdKe4wBXqEDHZbRJVHMwthoiAoSjyFSM4Tw3k ug0NRwEyUheQ/HYur0FctJ82+2FOHqqnUyBHJyVu0zYtL+Zsbx+qOq9dGDarymi70NPb pTew/vCj1YdJXvL4TEmJ61mKwu16kBpTyWhUnK822TZWiAFkV7RUJV3a+WxStF+FXp/U 9DV0r9/pzxjRNqlrnY4dp/WkRZhC8wagJUyiahe9XxPppcd61azXuDzJCttcRz7I3AuK F9dGsS1qK0CEV0oWzsl7weitYNdxSh9sukmG0DeG9IUGiP61Mjy8g7wPICzTNKwBMZNJ aJpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=FE5DODzwEVrnAcxsTFlBtbwqTxL49S209PD1E0rOLzA=; b=NbleXA5W5x/MCJqMOkAzCBovf+/naI92CUlETsP2binMPDZk5CUqKoak+oB2ndzcWd yQ5tPNhNla0zGzdbl5uvmpZBm+i+zNUxXDo5nYP3uWXJNnCMdzCJmOtJW7OL9R4JtUTF hTMHNClUtW8Fq/GyJHfeJxM7ra7D9b45DSW6WkM9eSqLAaPpKXUoT5P2LI5XR6LgJ3nr KAc3qYwdu08FwdnbU5sYm1HEPpIYbHB/lyFrZoVlOpgpwRObGo5gE4+/XsiHLHYVDRiP qyyCWgBH3TfyUOlPzXjBxq30IYFacCwEWeIXgtlFfKMbOPuq26GCKE2Kiyk5GhF30tdb baug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v78si8914046pgb.187.2019.06.17.05.33.28; Mon, 17 Jun 2019 05:33:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727207AbfFQMdZ (ORCPT + 99 others); Mon, 17 Jun 2019 08:33:25 -0400 Received: from mga07.intel.com ([134.134.136.100]:28929 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726005AbfFQMdY (ORCPT ); Mon, 17 Jun 2019 08:33:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jun 2019 05:33:24 -0700 X-ExtLoop1: 1 Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.150]) by fmsmga001.fm.intel.com with ESMTP; 17 Jun 2019 05:33:21 -0700 From: Jani Nikula To: Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book In-Reply-To: <20190614122755.1c7b4898@coco.lan> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <9da2a7f6ff57d9d53dcbb964eb310f7956522870.1560477540.git.mchehab+samsung@kernel.org> <87o930uvur.fsf@intel.com> <20190614140603.GB7234@kroah.com> <20190614122755.1c7b4898@coco.lan> Date: Mon, 17 Jun 2019 15:36:17 +0300 Message-ID: <874l4ov16m.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Jun 2019, Mauro Carvalho Chehab wrote: > Em Fri, 14 Jun 2019 16:06:03 +0200 > Greg Kroah-Hartman escreveu: > >> On Fri, Jun 14, 2019 at 04:42:20PM +0300, Jani Nikula wrote: >> > 2) Have the python extension read the ABI files directly, without an >> > extra pipeline. >> >> He who writes the script, get's to dictate the language of the script :) The point is, it's an extension to a python based tool, written in perl, using pipes for communication, and losing any advantages of integrating with the tool it's extending. I doubt you'd want to see system() to be used to subsequently extend the perl tool. I think it's just sad to see the documentation system slowly drift further away from the ideals we had, and towards the old ways we worked so hard to fix. > No idea about how much time it would take if written in python, > but this perl script is really fast: > > $ time ./scripts/get_abi.pl search voltage_max >/dev/null > real 0m0,139s > user 0m0,132s > sys 0m0,006s > > That's the time it takes here (SSD disks) to read all files under > Documentation/ABI, parse them and seek for a string. > > That's about half of the time a python script takes to just import the > the sphinx modules and print its version, running at the same machine: > > $ time sphinx-build --version >/dev/null > > real 0m0,224s > user 0m0,199s > sys 0m0,024s Please at least use fair and sensible comparisons. If you want to make the extension usable standalone on the command-line, bypassing Sphinx, you can do that. No need to factor in Sphinx to your comparisons. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center