PATCH: speed up ar(1)

Nick Clifton nickc@redhat.com
Wed Mar 9 12:41:00 GMT 2005


Hi Ben,

> The following patch alters the ar cache representation from a singly linked list to a
> hash table using the hashtab implementation from libiberty.  When archiving files
> with thousands of archive members (eg. libjava), this patch results in a 15-25%
> performance improvement.
> 
> Tested with an --enable-targets=all build, make check-binutils and a byte-wise
> comparison of the libjava libraries built with and without a patched ar.
> 
> Okay to commit?

[Tut tut - no ChangeLog entry...]

Approved for the mainline, but not the 2.16 branch.

Cheers
   Nick



More information about the Binutils mailing list