On Sunday 24 October 2010 08:19:58 Denys Vlasenko wrote:
> On Sunday 24 October 2010 11:02, Rob Landley wrote:
> > Attached is the sha1sum.c I wrote for toybox a few years back.  (Never
> > did quite get around to cleaning it up, extending it to support the
> > various other shaXXXsum sizes, or implementing md5sum.  My todo list
> > runneth over.)  But what I was going for was _simple_, and I confirmed it
> > produced the right output on all the data I threw at it.  It's 185 lines
> > including the actual applet implementation and help text and everything. 
> > The busybox one is 900 lines for the engine.
>
> Patch: -19 bytes on x86, sums 300 mbytes in 4 seconds instead of 5.4:

I'm reminded of the time Manuel Nova immediately sped my bunzip2 
impelementation up by something like 20%. :)

I've noticed a theme, that any time I get what I consider a nice simple 
implementation of something posted, other people immediately improve on it in 
size and speed terms.

Rob
-- 
GPLv3: as worthy a successor as The Phantom Menace, as timely as Duke Nukem 
Forever, and as welcome as New Coke.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to