Page MenuHomePhabricator

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

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



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:

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.