Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2412486rdg; Mon, 14 Aug 2023 01:21:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyhJ0HilWJes6HN81dM7iJw0FF53iaOB36mj/BH8+IWfJR8O+g5xzUA5gVprvZftZSE+mN X-Received: by 2002:a05:6808:1790:b0:3a1:b28f:814c with SMTP id bg16-20020a056808179000b003a1b28f814cmr11606251oib.1.1692001310098; Mon, 14 Aug 2023 01:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692001310; cv=none; d=google.com; s=arc-20160816; b=vJ0JChhcJlk9Xlh4KPd820jKo7mvp0KUmLmGH22DqdJo+VpOunMX02UUNpV/bOjwpJ pREuU2Sr93eOYqXICARXnfQwLLG8BTfmzOfuLl3ZOc6p7N6ACb/QxkvRGTejvoo3wpo9 uU4fFNWqfY6sVsGX45GPh4ii3EHs82MNGwQm9groNz+DfMfJ0R97lv1DBfNKX2kRgh7y 8PxYCYAKInfCFqt2eWjWSunwZdY3A7L2IDWlJNmzZ/u47cF2hiX4CVI+G8/8g2qwPFvi GRwkTWbx4r5Dcj3U6Mb7cynoLS4l6aXreFcQ2SBFK2cHgqyeGfj/dXkIMAql499/WoNb RVsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=pEvPw+LTztATyO1tv7rJv3fx+tKUjKLdXBdy5RzHNac=; fh=8e35uhb9goEQtdkGmRkZft++HtEPVCFTqu9vUe32zZc=; b=vkBLDM5fa/4TIcBtT2+GD5az4fS7jpVXXAS/C9JgDk8LvXPOxf0uC4LVKDthHVaHP+ +NpiiC6djUXabHMVL7CdI5U9yV6uz6UiqRpD5R5qU9nUQSPev6shG6xbaygBchEy7KNG Xqm1V6w6npjzOze4sDYrmhO1N0t76oYAGoN8AKpGz41rjjahU8iHyuhyO4YgNDewhDah 0XQ09gz9Kh5TMBIzKCfK5ne43GEg2tda/fvOwbUF6sEbrcEeS6PhWNiAth2TCIuRE8yy 2kf+6CNXnPe5EgLQ+s8NlWEStEQX6CDpk7DN5aeL9DfrPWpLhpfFCQsWvaxxjdB2CoNe jsyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k21-20020a6568d5000000b005649f2d8f11si7828597pgt.206.2023.08.14.01.21.38; Mon, 14 Aug 2023 01:21:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231789AbjHNINY convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Aug 2023 04:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234663AbjHNINT (ORCPT ); Mon, 14 Aug 2023 04:13:19 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D65CD10EB for ; Mon, 14 Aug 2023 01:13:09 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-72-b-sFahrIMv2qrldd8e66mA-1; Mon, 14 Aug 2023 09:13:06 +0100 X-MC-Unique: b-sFahrIMv2qrldd8e66mA-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 14 Aug 2023 09:12:55 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 14 Aug 2023 09:12:55 +0100 From: David Laight To: 'Andy Shevchenko' CC: 'Petr Mladek' , Marco Elver , "linux-kernel@vger.kernel.org" , "kasan-dev@googlegroups.com" , "linux-mm@kvack.org" , Steven Rostedt , Rasmus Villemoes , "Sergey Senozhatsky" , Alexander Potapenko , Dmitry Vyukov , Andrew Morton Subject: RE: [PATCH v2 2/3] lib/vsprintf: Split out sprintf() and friends Thread-Topic: [PATCH v2 2/3] lib/vsprintf: Split out sprintf() and friends Thread-Index: AQHZycNoqz0YrpkIvk2kVFpZOdRD+K/hpuuggAHNtgCABgRJkA== Date: Mon, 14 Aug 2023 08:12:55 +0000 Message-ID: References: <20230805175027.50029-1-andriy.shevchenko@linux.intel.com> <20230805175027.50029-3-andriy.shevchenko@linux.intel.com> <900a99a7c90241698c8a2622ca20fa96@AcuMS.aculab.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,PDS_BAD_THREAD_QP_64, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko > Sent: 10 August 2023 14:14 > > On Wed, Aug 09, 2023 at 08:48:54AM +0000, David Laight wrote: > > ... > > > If you split headers into so many small pieces then all > > > source files will start with 3 screens of includes. I do not see > > > how this helps with maintainability. > > > > You also slow down compilations. > > Ingo's patches showed the opposite. Do you have actual try and numbers? The compiler has to open the extra file on every compile. If you include it from lots of different places it has to open it for each one (to find the include guard). Any attempted compiler optimisations have the same much the same problem as #pragma once. With a long -I list even finding the file can take a while. Probably most obvious when using NFS mounted filesystems. Especially the 'traditional' NFS protocol that required a message 'round trip' for each element of the directory path. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)