From owner-freebsd-hackers@FreeBSD.ORG Sat May 17 10:14:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FCAD37B401 for ; Sat, 17 May 2003 10:14:48 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52B0C43F3F for ; Sat, 17 May 2003 10:14:47 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h4HHEfC2005635; Sat, 17 May 2003 19:14:43 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Marcel Moolenaar From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 16 May 2003 11:46:26 PDT." <20030516184626.GB537@athlon.pn.xcllnt.net> Date: Sat, 17 May 2003 19:14:40 +0200 Message-ID: <5634.1053191680@critter.freebsd.dk> cc: freebsd-hackers@freebsd.org Subject: Re: Optimizations. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2003 17:14:48 -0000 In message <20030516184626.GB537@athlon.pn.xcllnt.net>, Marcel Moolenaar writes : >On Fri, May 16, 2003 at 09:59:52AM +0200, Poul-Henning Kamp wrote: >> >> >That's right:) >> >Look at functions in /sys/kern/kern_tc.c. There are so many little >> >functions. How about put __inline here and there? >> >> Try it, and you'll find that things get slower because the code >> gets bigger. > >Observed on what architecture? i386, but it takes a _lot_ to get a stddev on your measurements which allow you to measure this in real-world applications. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.