Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[C] Which is faster?

Name: Anonymous 2010-07-13 5:57


if(a > 3)
{
  int expected_b = fun(a);
  if(good_enough(b, expected_b))
  {
    do_stuff();
  }
}


VS


int expected_b = fun(a);
if(a > 3 && good_enough(b, expected_b))
{
  do_stuff();
}


This is done a shitload of times. fun(a) is a simple linear function.

Name: Anonymous 2010-07-14 3:33

I WOULD LIKE TO HEAR FV'S OPINION ON THIS.

Name: FrozenVoid 2010-07-14 4:36

if(a>3 && good_enough(b, fun(a)) ){ do_stuff(); }


__________________
Orbis terrarum delenda est

Name: Anonymous 2010-07-14 4:46

>>20
FV copying a previous post in the thread with a couple minor changes?
either he's getting lazy, or this is an imposter.

Name: Anonymous 2010-07-14 7:08

>>21
Have you not been paying attention the past couple weeks?  It is obviously an impostor.

Name: Anonymous 2010-07-14 7:36

>>22
??

Name: Anonymous 2010-07-14 8:57

>>23
Read some of his posts. Most of them are not at all FV-quality. A few are pretty damn close, however.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List