This is an archive of the discontinued LLVM Phabricator instance.

[pdb] Change ghash section to use 8-byte ghashes instead of 20 byte
ClosedPublic

Authored by zturner on May 14 2018, 3:52 PM.

Details

Summary

The previous algorithm used 20-byte SHA1 hashes. This new version computes the same 20-byte SHA1, but only uses the last 8 bytes as a hash.

This speeds up /DEBUG:GHASH links by ~10% in my testing while also making object files smaller.

Diff Detail

Event Timeline

zturner created this revision.May 14 2018, 3:52 PM
rnk accepted this revision.May 15 2018, 10:38 AM

lgtm

This revision is now accepted and ready to land.May 15 2018, 10:38 AM
This revision was automatically updated to reflect the committed changes.