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

Branch Misses

Name: Anonymous 2011-09-26 17:26

How bad do branch misses hurt a programs performance? In C and Java?

for example how big of an impact would :


int shitinanus()
{
    int val = getanus();
    if(val != 0)
        return ANALTONIGHT;
    return ALONETONIGHT;
}


be knowing that val will most likely be 0 99% of the time compared to the below function


int shitinanus()
{
    int val = getanus();
    if(val == 0)
        return ALONETONIGHT;
    return ANALTONIGHT;
}

Name: sage 2011-09-27 15:45

>>43
You don't need to point out the grotesquely obvious, you retarded midget. There's nothing in this thread that even marginally touches portability issues. There's nothing in this thread that could suggest, even in a fanciful gay dream your feeble brain could produce, that anything so far discussed could ever be portable, or standardized, or even preferred over portable code. It is horribly clear from the context that everything cited so far is non-standard, but you seem to lack very basic text comprehension skills.

Also, don't worry about citing standards. I know more, much more about standards than they actually deserve. In fact, I probably know more about every programming subject than you could ever hope to understand, and it's likely that I'm not alone. After all, you surely haven't correctly grasped a single bit of information from anything you've ever read in your life -- considering you have actually read anything --, since you just haven't been properly alphabetized.

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