The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

ATTN: jmaxsohmer by Liava2006-11-19 12:55:59
  My comment... by threadjacker2005-07-24 00:29:12
    I also disagree with you by Liava 2005-07-24 00:41:56
On both counts.

First, if (x) if (y) is identical to if (x && y). Any programmer who wants to put something between if (x) and if (y) isn't going to be slowed down much by the second construct.

Second, although in most cases efficiency doesn't matter, there are cases where it does. For example, in this code, you might want to use static branch prediction (if your compiler supports it), since in most cases, the abort is going to be very unlikely. If this code is called a lot, then that static branch prediction could save you quite a bit of execution time with the processor stalled due to a branch prediction error. Especially on poorly designed processors (read Pentium 4) with 20 stage pipelines.
[ Reply ]
      You're allowed :-) by threadjacker2005-07-24 01:07:18
        I use both by Liava2005-07-24 01:15:54
          Heh, I do that with the && version... by imperito2005-07-24 01:21:36
            Not to pick on you by Liava2005-07-24 01:33:34
              I like lisp, actually. And I like parens. by imperito2005-07-24 01:37:36
                Or at least turns enough stuff red that... by Liava2005-07-24 01:39:43
            You're so close :-) by threadjacker2005-07-24 01:34:41
              Oh no by Liava2005-07-24 01:38:13
              The indentation indicates that also. by imperito2005-07-24 01:39:03
                No argument there.... by threadjacker2005-07-24 01:44:47

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)