Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2000 20:30:28 -0600
From:      seebs@plethora.net (Peter Seebach)
To:        freebsd-hackers@freebsd.org
Subject:   Re: Optimizations (was: Why not another style thread? (was Re: cvs commit: src/lib/libc/gen getgrent.c)) 
Message-ID:  <200012200230.UAA07160@guild.plethora.net>
In-Reply-To: Your message of "Tue, 19 Dec 2000 18:23:58 PST." <200012200223.eBK2Nwt63810@earth.backplane.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200012200223.eBK2Nwt63810@earth.backplane.com>, Matt Dillon writes:
>    Guys, on intel a simple conditional is going to be a whole lot
[less]
>    expensive then a subroutine call no matter what, even if the
>    conditional misses.

Sure, but it may be worth considering the effects on other platforms, present
and future, possibly including future Intel.  If it's not a big performance
difference, write the most readable code.  If it's a serious performance
difference, then it's probably worth #ifdef'ing it based on profiled results
under different compilers on different chips.

:)

-s


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012200230.UAA07160>