Use precompiled headers to compile C++ modules

On an average system this will cut around 15% of the total build time.
Unfortunately, including Boost headers in the precompiled header takes
longer time to generate and then read in each module, than just
including the necessary headers in each module.

Use Noel Llopis' list_precomp.py at
http://www.gamesfromwithin.com/wp-content/uploads/bin/list_precomp_py.txt
to analyse which headers are included the most and are candidates for
inclusion.
This commit is contained in:
Roland Kaufmann
2013-01-23 14:35:50 +01:00
parent e0e1a24edd
commit f4350098ed
2 changed files with 42 additions and 2 deletions

10
opm/core/opm-core-pch.hpp Normal file
View File

@@ -0,0 +1,10 @@
/* List of headers that should be precompiled */
#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <istream>
#include <string>
#include <vector>