This is an archive of the discontinued LLVM Phabricator instance.

Make StringTableBuilder to cache hash values.
ClosedPublic

Authored by ruiu on May 4 2016, 1:16 PM.

Diff Detail

Event Timeline

ruiu updated this revision to Diff 56195.May 4 2016, 1:16 PM
ruiu retitled this revision from to Make StringTableBuilder to cache hash values..
ruiu updated this object.
ruiu added a reviewer: rafael.
ruiu added a subscriber: llvm-commits.
ruiu added a comment.May 4 2016, 1:19 PM

This change seems to speed up LLD a bit. Not too bad for a small patch.

Time to link Clang (debug build):

w/o patch 6.3696 seconds
w/patch 6.2746 seconds (-1.5%)

rafael edited edge metadata.May 5 2016, 6:41 AM
rafael added a subscriber: rafael.

LGTM. There might be even more savings by adding methods that take a
CachedHash<StringRef> instead of a StringRef, but lets do this first.

Note that you need to update lld too :-)

This revision was automatically updated to reflect the committed changes.