aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/scripts/generator/cpp/ast.py
diff options
context:
space:
mode:
authorTakuto Ikuta <tikuta@google.com>2018-06-12 18:06:29 +0900
committerTakuto Ikuta <tikuta@google.com>2018-06-13 05:53:18 +0900
commitf4d0631a3970d88199a56883e6148ada05aed7b5 (patch)
tree3287ed16f0b517bd22174cc787976b533d78443d /googlemock/scripts/generator/cpp/ast.py
parent1bccd6f353bdb0b6dbf2786869d4ed2d651ddc34 (diff)
downloadgoogletest-f4d0631a3970d88199a56883e6148ada05aed7b5.tar.gz
googletest-f4d0631a3970d88199a56883e6148ada05aed7b5.tar.bz2
googletest-f4d0631a3970d88199a56883e6148ada05aed7b5.zip
Reduce the number of strcmp calling while initialization
When we do parallel test execution with a process for a test, initialization of gtest become performance bottleneck when the test binary contains many testcases. Especially, some parameterlized test in chromium browser affected by largely when address sanitizer is enabled. Address sanitizer does not allow using optimized strcmp function and test addition in parameterized test require lookup of test case using strcmp. This patch reduces the number of strcmp, it is called when registering parameterized test. Using reverse iterator improves the time to find registered tests in such case. Some tests for chromium browser using address sanitizer finished 2x faster with this patch.
Diffstat (limited to 'googlemock/scripts/generator/cpp/ast.py')
0 files changed, 0 insertions, 0 deletions