This is an archive of the discontinued LLVM Phabricator instance.

Use OffsetMap in getSectionPiece
ClosedPublic

Authored by espindola on Mar 27 2018, 10:56 PM.

Details

Reviewers
ruiu
Summary

OffsetMap maps to a SectionPiece index, but we were not taking advantage of that in getSectionPiece.

With this patch both getOffset and getSectionPiece use OffsetMap and the binary search is moved to findSectionPiece.

This is a measurable win (up to 2,2%) in most tests.

Diff Detail

Event Timeline

espindola created this revision.Mar 27 2018, 10:56 PM
ruiu accepted this revision.Apr 2 2018, 7:52 PM

Sorry, I missed this one. LGTM.

This revision is now accepted and ready to land.Apr 2 2018, 7:52 PM