This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Speed up arm-cortex-cpus.c test
ClosedPublic

Authored by tra on Aug 7 2020, 5:30 PM.

Details

Summary

Trailing wildcard regex searches greedily continue searching through the whole
input and make the test unnecessarily slow.

Using equivalent plain text partial match speeds up the test execution time from ~35s down to ~12s.

See before/after results here:
https://gist.github.com/Artem-B/d0b05c2e98a49158c02de23f7f4f0279

Diff Detail

Event Timeline

tra created this revision.Aug 7 2020, 5:30 PM
tra requested review of this revision.Aug 7 2020, 5:30 PM
tra edited the summary of this revision. (Show Details)
dmgreen accepted this revision.Aug 8 2020, 3:43 AM
dmgreen added a subscriber: dmgreen.

Yeah, nice. Sounds good to me.

This revision is now accepted and ready to land.Aug 8 2020, 3:43 AM
This revision was automatically updated to reflect the committed changes.