[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 70x speed-up for seq's common cases

From: Pádraig Brady
Subject: Re: 70x speed-up for seq's common cases
Date: Sat, 15 Sep 2012 12:29:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

On 09/15/2012 12:24 PM, Torbjorn Granlund wrote:
Pádraig Brady<address@hidden>  writes:

   For comparison here is an add function that used to be in coreutils:;a=blob;f=src/getlimits.c;hb=a2be861b#l81

Same thing, very different styles.

I cannot help writing code for high performance.  Compact source code is
low on my list.  There is only one branch in my code that will not
predict well for typical usage (the on at cy != 0).  I suppose many
people find your higher-level and more compact style easier to read.

Speed is the main reason for such code.
I expect we'll use your version.
My reference was mainly for myself so
I could compare speed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]