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: Anonymous 2011-09-27 13:35

>>26
I was pointing out what you're talking about is non standard. You're more than welcome to try and cite any passage in one the the various ANSI/ISO C standards or JSP that supports anything that is being talked about in this thread.

So to put this in terms your jewish ass can understand, branch misses are platform specific, and hence, not covered by any of the standard. Get it hourly worker boy?

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