From owner-freebsd-hackers Tue Dec 19 18:24:17 2000 From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 19 18:24:15 2000 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id EBDDB37B400; Tue, 19 Dec 2000 18:24:14 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id eBK2Nwt63810; Tue, 19 Dec 2000 18:23:58 -0800 (PST) (envelope-from dillon) Date: Tue, 19 Dec 2000 18:23:58 -0800 (PST) From: Matt Dillon Message-Id: <200012200223.eBK2Nwt63810@earth.backplane.com> To: Luigi Rizzo Cc: grog@lemis.com (Greg Lehey), freebsd-hackers@FreeBSD.ORG, n@nectar.com, hackers@FreeBSD.ORG Subject: Re: Optimizations (was: Why not another style thread? (was Re: cvs commit: src/lib/libc/gen getgrent.c)) References: <200012200050.eBK0okv70621@iguana.aciri.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Guys, on intel a simple conditional is going to be a whole lot expensive then a subroutine call no matter what, even if the conditional misses. Subroutine calls are very fast on a P6, but if they push anything on the stack at all beyond the return address they are not going to be as fast as a conditional. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message