eranpeer / FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
MIT License
1.22k stars 169 forks source link

Any way to speed up compile time? #213

Closed kammce closed 4 years ago

kammce commented 4 years ago

I'm trying to speed up the process of building unit tests and I currently bottle necked by FakeIt. FakeIt seems to take up the majority of the build time for compilation. Are there any defines that I can use to reduce the feature set and increase compilation speed?

Ambrou commented 4 years ago

Hi, Did you try to use precompiled header ? FakeIt is just header code, so you can reduce the compile time by this way

Ambrou

kammce commented 4 years ago

Actually I was able to greatly reduce my compile time by unity/jumbo building my unit tests. Got my test build times from 10 minutes down to 1m40s.