microsoft / STL

MSVC's implementation of the C++ Standard Library.
Other
9.89k stars 1.45k forks source link

Reduce `mismatch` test run time #4656

Closed AlexGuteniev closed 1 month ago

AlexGuteniev commented 1 month ago

Before this change the mismatch and lex compare test consumed more time than all other tests in vector algorithms test combined.

Done the following:

StephanTLavavej commented 1 month ago

Thanks! On my local machine, this results in a test speedup of 1.61x, very nice! :heart_eyes_cat:

StephanTLavavej commented 1 month ago

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

StephanTLavavej commented 1 month ago

Thanks for noticing and fixing how this test was wasting time! :stopwatch: :hourglass_flowing_sand: :heart_eyes_cat: