From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216AbeBZH7h (ORCPT ); Mon, 26 Feb 2018 02:59:37 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:53967 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbeBZH7f (ORCPT ); Mon, 26 Feb 2018 02:59:35 -0500 X-Google-Smtp-Source: AG47ELvpGI3KZzZd929yyg2Sj8J6z0iy2eLAticOryeRtu48M9Kch2Rtfi7sVBnCIlWx1AoLv1W+vA== Date: Mon, 26 Feb 2018 08:59:31 +0100 From: Ingo Molnar To: Rasmus Villemoes Cc: Randy Dunlap , Ingo Molnar , Thomas Gleixner , LKML , "linux-arch@vger.kernel.org" Subject: Re: [PATCH/RFC] headers: drop 2 #included headers from Message-ID: <20180226075931.5vn4vdbfcsje2z56@gmail.com> References: <20180216075942.kmgdyvmluke2s5vg@gmail.com> <87bmgc3bdv.fsf@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bmgc3bdv.fsf@rasmusvillemoes.dk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rasmus Villemoes wrote: > [...] Now I finally got around to writing some scripts for that, so here's a > visualization of (the evolution of) the problem: > > https://wildmoose.dk/header-bloat/ Nice! In particular your final conclusion is impressive and scary: > So the typical (median) translation unit ends up including over 450 headers > files, making the whole TU about 200 times bigger than the .c file itself, while > more than 25% of the translation units get bloated to over 400 times the size of > the .c file. Even with a lot of this being eliminated at fairly early compiling stages that's a *huge* chunk of code that needs to be parsed again and again and again and again ... > I hope to find some time soonish to polish the old programs and see if they > actually still work. That would be lovely! Thanks, Ingo