On 15/05/2015 20:50, "Pravin Shelar" wrote:
>On Thu, Apr 23, 2015 at 11:40 AM, Daniele Di Proietto
> wrote:
>> Initializing the dp_packet's metadata can be a hot spot, especially
>> for very simple pipelines. Therefore improving the code here can
>> sometimes make a difference.
>>
>> Using mem
On Thu, Apr 23, 2015 at 11:40 AM, Daniele Di Proietto
wrote:
> Initializing the dp_packet's metadata can be a hot spot, especially
> for very simple pipelines. Therefore improving the code here can
> sometimes make a difference.
>
> Using memcpy instead of a plain assignment helps GCC and clang g
Initializing the dp_packet's metadata can be a hot spot, especially
for very simple pipelines. Therefore improving the code here can
sometimes make a difference.
Using memcpy instead of a plain assignment helps GCC and clang generate
faster code. Here's a comparison of the compiler generated code