Re: Radiobuttons dont work?



Sven,
 
While what you say may be true, it's not generally a good idea to "rely" on compiler optimizations (IMHO, anyway) to do the work for you.
 
Just for the record, though, I'm not criticizing the author, only the code.  I've written enough bad code myself to be able to recognize it ;-)
 
-Rob
 
----- Original Message -----
From: Sven Neumann
Sent: Sunday, May 20, 2001 4:28 PM
To: Robert Wilkens
Cc: gtk-list gnome org
Subject: Re: Radiobuttons dont work?
 
Hi,

"Robert Wilkens" <RobertWilkens msn com> writes:

> Putting anything unnecessary inside of a loop is a waste of cpu cycles...

profile, then come back. It's very likely that the compiler optimizes the
branch inside the loop away for you. I agree that it is not very good
looking or readable, but I doubt there would be a performance difference.


Salut, Sven


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]