[Toybox] md5sum cleanup
Ivo van Poorten
ivopvp at gmail.com
Sat Jun 7 06:36:27 PDT 2014
On Sun, 01 Jun 2014 12:00:08 -0500 Rob Landley <rob at landley.net> wrote:
> On 05/15/14 11:50, Ivo van Poorten wrote:
> > cur-hg 8.6
> > daniel 6.7
> > ivo 4.9
> > md5sum 2.8
> > openssl 2.7
The attached patch averages out to 3.2s on the same dataset and cpu.
> Could you get me a patch on top of what's currently there?
name old new delta
-----------------------------------------------------------------------
md5_transform 243 2011 1768
md5rot 64 0 -64
md5table 256 0 -256
-----------------------------------------------------------------------
1448
total
Here's a new version with only a swap 'n rol macro and the rest
unrolled and inlined. Indeed a lot bigger, but also quite a bit faster.
Not yet as fast as gnu's md5sum or openssl, but we're getting closer.
Perhaps the memcpy() is becoming a bottleneck.
Regards,
Ivo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: md5sum-ivo-unrolled.patch
Type: text/x-diff
Size: 7745 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140607/1758b18b/attachment-0002.patch>
More information about the Toybox
mailing list