Date: Wed, 23 Jan 2013 11:29:45 -0800 From: Artem Belevich <art@freebsd.org> To: Luigi Rizzo <rizzo@iet.unipi.it> Cc: current@freebsd.org Subject: Re: __builtin_memcpy() slower than memcpy/bcopy (and on linux it is the opposite) ? Message-ID: <CAFqOu6jsrT8b_Eh_oH1AeQw4%2BzMv-Z_YcJKFWFB95HJ_m6zpkQ@mail.gmail.com> In-Reply-To: <20130123163238.GB56212@onelab2.iet.unipi.it> References: <20130123163238.GB56212@onelab2.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 23, 2013 at 8:32 AM, Luigi Rizzo <rizzo@iet.unipi.it> wrote: > Probably our compiler folks have some ideas on this... > > When doing netmap i found that on FreeBSD memcpy/bcopy was expensive, > __builtin_memcpy() was even worse, and so i ended up writing > my custom routine, (called pkt_copy() in the program below). > This happens with gcc 4.2.1, clang, gcc 4.6.4 The program does not seem to have pkt_copy. It does have fast_bcopy. Is that the one you meant by pkt_copy? --Artem
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFqOu6jsrT8b_Eh_oH1AeQw4%2BzMv-Z_YcJKFWFB95HJ_m6zpkQ>