Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755590AbZAIODc (ORCPT ); Fri, 9 Jan 2009 09:03:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752939AbZAIODU (ORCPT ); Fri, 9 Jan 2009 09:03:20 -0500 Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:1138 "EHLO g5t0006.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751513AbZAIODT (ORCPT ); Fri, 9 Jan 2009 09:03:19 -0500 Message-ID: <49675920.4050205@hp.com> Date: Fri, 09 Jan 2009 09:03:12 -0500 From: jim owens User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Ingo Molnar CC: Linus Torvalds , "H. Peter Anvin" , Chris Mason , Peter Zijlstra , Steven Rostedt , paulmck@linux.vnet.ibm.com, Gregory Haskins , Matthew Wilcox , Andi Kleen , Andrew Morton , Linux Kernel Mailing List , linux-fsdevel , linux-btrfs , Thomas Gleixner , Nick Piggin , Peter Morreale , Sven Dietrich Subject: Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=y impact References: <1231408718.11687.400.camel@twins> <20090108141808.GC11629@elte.hu> <1231426014.11687.456.camel@twins> <1231434515.14304.27.camel@think.oraclecorp.com> <20090108183306.GA22916@elte.hu> <496648C7.5050700@zytor.com> <20090109130057.GA31845@elte.hu> In-Reply-To: <20090109130057.GA31845@elte.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 26 Ingo Molnar wrote: > > One interpretation of the numbers would be that core kernel hackers are > more inline-happy, maybe because they think that their functions are more > important to inline. > > Which is generally a fair initial assumption, but according to the numbers > it does not appear to pay off in practice as it does not result in a > smaller kernel image. I think people over-use inline for the opposite reason. They are taught: - use inline functions instead of macros - inlining functions makes your code run faster They also know inlining may increase program object size. That inlining will reduce object size on many architectures if the function is small is just a happy side effect to them. jim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/