Re: Processor Time

From: Leeman Strout (leeman@redrose.net)
Date: 07/12/96


On Fri, 12 Jul 1996, Brian Christopher Guilbault wrote:

> Hiyaz-
> 
> This question kind of goes out to you CS students or those who know a bit 
> about theory I guess. I was wondering which is more processor efficient, 
> a nested "if" or a single if composed of multiple checks. For example:


Honestly, with gnu c you shouldn't see any difference.  It's good enough 
to optimize either case into an almost identical piece of machine code.
I would hope it's true with any commercial compiler as well.


Leeman
leeman@redrose.net



This archive was generated by hypermail 2b30 : 12/07/00 PST