Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boost really slows down the compilation on VS2005

I have recently started using Boost in my C++ projects and noticed a quite a huge delay before the compulation even starts (when I hit the re-build I have to wait for 5 minutes for compilation to start).

I have run the Filemon and it shown me that all that time the Visual Studio was idle devenv.exe was probing thru Boost include directories.

Any ideas how could I get speed the compilation up without throwing Boost away from the proect?

Thank you.

like image 652
Andrew Avatar asked Nov 14 '10 23:11

Andrew


1 Answers

You probably added boost include directories straight to the 'Project Settings > C/C++ > General > Additional Include directories'. Visual Studio keeps track of project dependencies to provide a minimal recompilation when something has changed (this is not connected with IntelliSense).

If you did, move the boost includes to your VS include path - this is where they belong and they will never get checked by VS when you compile the project. If you didn't, there might be some other link to the boost dirs in the Project Settings.

like image 72
Vladimir Sinenko Avatar answered Sep 30 '22 19:09

Vladimir Sinenko