This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold speed for small programs
- From: Simon Josefsson <simon at josefsson dot org>
- To: binutils at sourceware dot org
- Cc: bug-gnulib at gnu dot org
- Date: Tue, 14 Dec 2010 08:44:02 +0100
- Subject: Re: gold speed for small programs
- Openpgp: id=B565716F; url=http://josefsson.org/key.txt
- References: <20101214070450.GD20657@gmx.de>
Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:
> 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.
GNU Nettle contains optimized SHA-1, although I'm not sure it exploits
SSE operations. Generally, the crypto code in GNU Nettle is clean (no
malloc!) and leans itself to modularity, so maybe it could replace some
crypto code in gnulib.
/Simon