Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Speeding up builds with pre-compiled prefix headers

$
0
0

Got this working in Visual Studio also

For a 2 file (main.cpp, ofApp.cpp) project with 1 line of code in draw
VS2015 / Xeon 6-core / x64 / Debg build:

Using PCH:


1> 283 ms ClCompile 1 calls
1> 3408 ms Link 1 calls
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

Without


1> 3535 ms ClCompile 1 calls
1> 4977 ms Link 1 calls
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

That's a pretty drastic increase in speed for the compile stage. Linking is still quite heavy, but for larger projects (more than 2 cpp's) the effect will be more pronounced.


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>