From owner-cvs-all@FreeBSD.ORG Wed Jul 23 00:49:03 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B790A37B401; Wed, 23 Jul 2003 00:49:03 -0700 (PDT) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC6A943F93; Wed, 23 Jul 2003 00:49:02 -0700 (PDT) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.9/8.12.9) with ESMTP id h6N7n1Ho065174; Wed, 23 Jul 2003 08:49:01 +0100 (BST) (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost)h6N7n1eK065166; Wed, 23 Jul 2003 08:49:01 +0100 (BST) X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1])h6N7nFZ2071337; Wed, 23 Jul 2003 08:49:15 +0100 (BST) (envelope-from mark@grondar.org) From: Mark Murray Message-Id: <200307230749.h6N7nFZ2071337@grimreaper.grondar.org> To: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 23 Jul 2003 07:31:12 +0200." <19767.1058938272@critter.freebsd.dk> Date: Wed, 23 Jul 2003 08:49:15 +0100 Sender: mark@grondar.org X-Spam-Status: No, hits=0.2 required=5.0 tests=EMAIL_ATTRIBUTION,FROM_NO_LOWER,IN_REP_TO, QUOTED_EMAIL_TEXT,REPLY_WITH_QUOTES version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern init_main.c kern_malloc.c md5c.c subr_autoconf.c subr_mbuf.c subr_prf.c tty_subr.c vfs_cluster.c vfs_subr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2003 07:49:04 -0000 Hi There is a problem with your algorithm. M "Poul-Henning Kamp" writes: > The algorithm I would like to see implemented as a pre-commit check > for the __inline* keywords are: > > > [1] if (programmer thinks inline might be useful) { > try compiling with inline; > [2] if (object code smaller) { > /* inline is beneficial */ The executable could be too slow here. This forces "small code" to be always better, at the potential expense of speed. > commit it; > return; > } > run benchmark; > [3] if (code runs faster) { > /* inline is beneficial */ > commit it; > return; > } > } > /* inline not proven beneficial */ > return; -- Mark Murray iumop ap!sdn w,I idlaH