Hi,
I've recently started some hacking on mongodb. However, the long compilation time is giving me a lot of headache.
After a full build, I made a small change to a header file (client/constant.h), and then re-build the code with:
scons -j2 mongod
However, the incremental build takes more than 40 minutes on my machine (2 cores, debian). Such long compilation time for every small change is very counterproductive and sometimes annoying. Admittedly, C++ compilation is time-consuming, but is there any way to make incremental build like this significantly faster? (e.g., is there anything like precompiled headers or any other tricks?)
Thanks,
Lianghong