[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gold speed for small programs
From: |
Pádraig Brady |
Subject: |
Re: gold speed for small programs |
Date: |
Tue, 14 Dec 2010 09:53:50 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 14/12/10 07:04, Ralf Wildenhues wrote:
> Trying out gold (no LTO) on GCC's cc1, a log shows that the single
> biggest part (20%) of user time for such a medium sized program may be
> spent in SHA1 computation for the build id. I think the SHA1 code in
> libiberty would benefit from an SSE implementation, such as the one
> found in git or described on <http://en.wikipedia.org/wiki/SHA-1>.
>
> Adding bug-gnulib in Cc: because that's where the libiberty SHA1
> implementation comes from.
Linus' portable SHA1 implementation is much faster:
http://lists.gnu.org/archive/html/bug-coreutils/2009-08/threads.html#00118
There was talk of licensing changes, but nothing came of that.
There was also talk of an SSE version:
http://lists.gnu.org/archive/html/bug-coreutils/2010-04/msg00107.html
Although architecture specific, it's probably worth including given
the ubiquity of the architecture and the performance gain it provides.
cheers,
Pádraig.