This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold speed for small programs
- From: Pádraig Brady <P at draigBrady dot com>
- To: binutils at sourceware dot org, bug-gnulib at gnu dot org
- Date: Tue, 14 Dec 2010 09:53:50 +0000
- Subject: Re: gold speed for small programs
- References: <20101214070450.GD20657@gmx.de>
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.