• Abseil Team's avatar
    Fix FunctionMocker compilation slowdown in 9d21db9e · 8fa9461c
    Abseil Team authored
    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
    8fa9461c
gmock-spec-builders.h 80.1 KB