lkml.org 
[lkml]   [2001]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    > > uninlining the code is too high a cost.
    >
    > I question that. Athlon does branch prediction on call targets, function
    > calls are cheap. 3dnow saves 25%-50% of cycles on a copy. How many function
    > calls can be paid for with 1000 cycles or so?
    >
    > My patch still inlines the standard string const_memcpy for the case of
    > small known length.

    We have a very large number of memcpy's of unknown short length (often in
    interrupts) that are close to branches. A lot of

    if(foo==NULL)
    return
    memcpy(..

    stuff for example.

    Im more than happy for someone to do the benches and prove me wrong

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:27    [W:0.019 / U:63.124 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site