This is an archive of the discontinued LLVM Phabricator instance.

[Coverage] Reduce complexity of adding function mapping records
ClosedPublic

Authored by vsk on Jan 20 2016, 11:32 PM.

Details

Summary

Replace a string append operation in addFunctionMappingRecord with a
vector append. The existing behavior is quadratic in the worst case:
this patch makes it linear.

Diff Detail

Repository
rL LLVM

Event Timeline

vsk updated this revision to Diff 45491.Jan 20 2016, 11:32 PM
vsk retitled this revision from to [Coverage] Reduce complexity of adding function mapping records.
vsk updated this object.
vsk added a reviewer: davidxl.
vsk added a subscriber: cfe-commits.
davidxl accepted this revision.Jan 21 2016, 11:27 AM
davidxl edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jan 21 2016, 11:27 AM
This revision was automatically updated to reflect the committed changes.