diff options
author | Abseil Team <absl-team@google.com> | 2023-04-11 17:54:26 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-04-11 17:55:11 (GMT) |
commit | 8fa9461cc28e053d66f17132808d287ae51575e2 (patch) | |
tree | db0717a7f90d588243994b56d4bb206be31cc9a2 /googletest/include | |
parent | 7f6f9c12adefe8130565b7425dc387d284c009e4 (diff) | |
download | googletest-8fa9461cc28e053d66f17132808d287ae51575e2.zip googletest-8fa9461cc28e053d66f17132808d287ae51575e2.tar.gz googletest-8fa9461cc28e053d66f17132808d287ae51575e2.tar.bz2 |
Fix FunctionMocker compilation slowdown in 9d21db9e0a60a1ea61ec19331c9bc0dd33e907b1
The slowdown appears to be due to an implicit conversion of distinct (yet semantically identical) lambdas to `std::function`. Lifting out the lambdas into functors that don't get re-instantiated reduces compilation times by nearly half.
Fixes #4156
PiperOrigin-RevId: 523447948
Change-Id: Ib0ae0761a54d7b1f2b706b14b2858eedf47e2297
Diffstat (limited to 'googletest/include')
0 files changed, 0 insertions, 0 deletions