{"id":1680,"date":"2013-09-24T11:49:17","date_gmt":"2013-09-24T09:49:17","guid":{"rendered":"http:\/\/mariusbancila.ro\/blog\/?p=1680"},"modified":"2013-09-24T11:49:17","modified_gmt":"2013-09-24T09:49:17","slug":"speed-up-vcpp-builds","status":"publish","type":"post","link":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/","title":{"rendered":"Speed-up VC++ builds"},"content":{"rendered":"<p>The larger a VC++ project is (or any project for that matter) the more time it takes to build. If you have solutions with many large projects the build times could get into your way. Starting a rebuild and going to lunch was a common scenario for me, as building took 20-25 minutes. Of course, you don&#8217;t rebuild everything all the time, but sometimes is enough to change something in a header somewhere deep inside the dependency web and trigger a rebuild of many or all the projects in a solution.<\/p>\n<p>Using compiler switches and other tricks I managed to reduce the build time with about 50% or more (the percent of speedup is similar on different machines, regardless of the previous build times on those machines). Replacing the hard disk with an SSD provided an additional 25% speed. My full build times have decreased from 20-25 minutes to about 7 minutes.<\/p>\n<p>First off all, Visual Studio enables <strong>parallel projects builds<\/strong> by default. As long as your projects don&#8217;t have dependency and can be built in parallel, it is possible to have up to 32 projects built at the same time. By default the number of projects built in parallel is set to the number of available cores. This option can be change from Tools &gt; Options &gt; Projects and Solutions &gt; Build and Run.<\/p>\n<p><a href=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1681\" alt=\"vcbuild1\" src=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild1.png\" width=\"757\" height=\"441\" srcset=\"https:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild1.png 757w, https:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild1-300x174.png 300w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/a><\/p>\n<p>The VC++ compiler also supports <strong>multi-processor compilation<\/strong>. This can be enabled with a compiler switch, <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/bb385193.aspx\">\/MP<\/a>. The result of this switch is that the compiler spawns into additional processes that simultaneous compile the source files. This option can be set per project from Project &gt; Properties &gt; Configuration Properties &gt; C\/C++ &gt; General.<\/p>\n<p><a href=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1682\" alt=\"vcbuild2\" src=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild2.png\" width=\"852\" height=\"605\" srcset=\"https:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild2.png 852w, https:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild2-300x213.png 300w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/a><\/p>\n<p>This option is however incompatible with several compiler and language features. In case of incompatibility the behavior differs:<\/p>\n<ul>\n<li>if the incompatibility is with another compiler option a warning is displayed and the \/MP options is ignored<\/li>\n<li>if the incompatibility is with a language feature an error is issued and compilation stops or continues depending on the error level<\/li>\n<\/ul>\n<p>The incompatible features are: #import processor directive, \/GM (enables incremental build), \/Yc (writes a precompiled header file), \/E and \/EP (copies pre-processor output to the standard console), \/showIncludes (writes a list of include files to the standard error console). These features are incompatible with \/MP because they would imply shared resources (console or file) to be used possible at the same time from different processes.<\/p>\n<p>The workaround for the #import processor directive is to move the directives to a file that is not built with the \/MP option. However, in practice I had problems with that and the workaround that actually worked was to move the #import directives to the pre-compiled header. That is built (the corresponding source file actually) synchronously before the compilation of any other translation unit starts, so there are no incompatibilities. However, this has the drawback that any change in the imported type library will trigger a rebuild of the precompiled header and of the whole project.<\/p>\n<p><a href=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1685\" alt=\"vcbuild3\" src=\"http:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild3.png\" width=\"205\" height=\"504\" srcset=\"https:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild3.png 205w, https:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild3-122x300.png 122w\" sizes=\"auto, (max-width: 205px) 100vw, 205px\" \/><\/a><\/p>\n<p>Below is a table of full build times for various VC++ projects from the same solution. The values were reported by MSBuild. The actual time values (shown to hundredths of a second) are not important (as they vary across builds and machines). What is important is the speed-up before enabling \/MP and after it.<\/p>\n<table width=\"400px\">\n<tr>\n<th colspan=\"2\" align=\"center\">Before<\/th>\n<th colspan=\"2\" align=\"center\">After<\/th>\n<\/tr>\n<tr>\n<th>Release<\/th>\n<th>Debug<\/th>\n<th>Release<\/th>\n<th>Debug<\/th>\n<\/tr>\n<tr>\n<td>00:00:58.43<\/td>\n<td>00:00:53.14<\/td>\n<td>00:00:37.32<\/td>\n<td>00:00:25.23<\/td>\n<\/tr>\n<tr>\n<td>00:00:45.41<\/td>\n<td>00:00:33.25<\/td>\n<td>00:00:12.16<\/td>\n<td>00:00:07.47<\/td>\n<\/tr>\n<tr>\n<td>00:00:56.85<\/td>\n<td>00:00:54.90<\/td>\n<td>00:00:51.35<\/td>\n<td>00:00:50.72<\/td>\n<\/tr>\n<tr>\n<td>00:00:45.41<\/td>\n<td>00:00:44.34<\/td>\n<td>00:00:24.41<\/td>\n<td>00:00:20.16<\/td>\n<\/tr>\n<tr>\n<td>00:01:00.92<\/td>\n<td>00:01:05.97<\/td>\n<td>00:01:15.40<\/td>\n<td>00:01:14.07<\/td>\n<\/tr>\n<tr>\n<td>00:04:17.89<\/td>\n<td>00:04:25.88<\/td>\n<td>00:01:34.66<\/td>\n<td>00:01:17.97<\/td>\n<\/tr>\n<tr>\n<td>00:02:59.41<\/td>\n<td>00:02:26.42<\/td>\n<td>00:01:11.99<\/td>\n<td>00:00:54.07<\/td>\n<\/tr>\n<tr>\n<td>00:00:46.96<\/td>\n<td>00:00:43.96<\/td>\n<td>00:00:17.70<\/td>\n<td>00:00:17.41<\/td>\n<\/tr>\n<tr>\n<td>00:00:46.05<\/td>\n<td>00:00:46.05<\/td>\n<td>00:00:16.69<\/td>\n<td>00:00:14.40<\/td>\n<\/tr>\n<tr>\n<td>00:01:44.84<\/td>\n<td>00:01:35.11<\/td>\n<td>00:00:30.29<\/td>\n<td>00:00:28.13<\/td>\n<\/tr>\n<tr>\n<td>00:00:11.02<\/td>\n<td>00:00:14.26<\/td>\n<td>00:00:07.97<\/td>\n<td>00:00:08.24<\/td>\n<\/tr>\n<tr>\n<td>00:00:09.28<\/td>\n<td>00:00:12.75<\/td>\n<td>00:00:07.59<\/td>\n<td>00:00:07.59<\/td>\n<\/tr>\n<tr>\n<td>00:00:08.46<\/td>\n<td>00:00:08.95<\/td>\n<td>00:00:10.89<\/td>\n<td>00:00:08.25<\/td>\n<\/tr>\n<tr>\n<td>00:00:18.68<\/td>\n<td>00:00:19.79<\/td>\n<td>00:00:14.32<\/td>\n<td>00:00:11.35<\/td>\n<\/tr>\n<tr>\n<td>00:02:46.37<\/td>\n<td>00:00:50.76<\/td>\n<td>00:01:52.16<\/td>\n<td>00:00:28.88<\/td>\n<\/tr>\n<tr>\n<td>00:00:13.87<\/td>\n<td>00:00:11.66<\/td>\n<td>00:00:09.24<\/td>\n<td>00:00:11.06<\/td>\n<\/tr>\n<tr>\n<td>00:01:05.37<\/td>\n<td>00:00:54.76<\/td>\n<td>00:00:25.45<\/td>\n<td>00:00:26.83<\/td>\n<\/tr>\n<tr>\n<td>00:00:29.00<\/td>\n<td>00:00:16.68<\/td>\n<td>00:00:13.32<\/td>\n<td>00:00:12.94<\/td>\n<\/tr>\n<tr>\n<td>00:00:25.79<\/td>\n<td>00:00:14.05<\/td>\n<td>00:00:12.09<\/td>\n<td>00:00:12.04<\/td>\n<\/tr>\n<tr>\n<td>00:00:22.80<\/td>\n<td>00:00:11.50<\/td>\n<td>00:00:11.60<\/td>\n<td>00:00:11.93<\/td>\n<\/tr>\n<tr>\n<td>00:00:31.76<\/td>\n<td>00:00:39.33<\/td>\n<td>00:00:25.00<\/td>\n<td>00:00:21.19<\/td>\n<\/tr>\n<tr>\n<td>00:00:56.01<\/td>\n<td>00:00:59.04<\/td>\n<td>00:00:26.62<\/td>\n<td>00:00:23.95<\/td>\n<\/tr>\n<tr>\n<td>00:00:20.40<\/td>\n<td>00:00:12.92<\/td>\n<td>00:00:08.64<\/td>\n<td>00:00:07.99<\/td>\n<\/tr>\n<tr>\n<td>00:00:16.48<\/td>\n<td>00:00:18.61<\/td>\n<td>00:00:09.18<\/td>\n<td>00:00:08.71<\/td>\n<\/tr>\n<tr>\n<td>00:00:09.74<\/td>\n<td>00:00:10.49<\/td>\n<td>00:00:06.84<\/td>\n<td>00:00:09.84<\/td>\n<\/tr>\n<\/table>\n<p>Another strategy for increasing the build times is to reduce the number of times framework headers (STL, MFC, ATL, etc.) or headers from your project that do not change often and are included in many places are included into the various source files of your projects. These headers can be put in the pre-compilead header, and therefore compiled just once. <\/p>\n<p>The next table shows the additional speed-up gain for several projects after moving framework headers to the pre-compiled header of each project.<\/p>\n<table width=\"400px\">\n<tr>\n<th colspan=\"2\" align=\"center\">Before<\/th>\n<th colspan=\"2\" align=\"center\">After<\/th>\n<\/tr>\n<tr>\n<th>Release<\/th>\n<th>Debug<\/th>\n<th>Release<\/th>\n<th>Debug<\/th>\n<\/tr>\n<tr>\n<td>00:00:37.32<\/td>\n<td>00:00:25.23<\/td>\n<td>00:00:32.79<\/td>\n<td>00:00:19.24<\/td>\n<\/tr>\n<tr>\n<td>00:00:12.16<\/td>\n<td>00:00:07.47<\/td>\n<td>00:00:04.90<\/td>\n<td>00:00:02.41<\/td>\n<\/tr>\n<tr>\n<td>00:00:51.35<\/td>\n<td>00:00:50.72<\/td>\n<td>00:00:44.15<\/td>\n<td>00:00:37.25<\/td>\n<\/tr>\n<tr>\n<td>00:00:24.41<\/td>\n<td>00:00:20.16<\/td>\n<td>00:00:20.19<\/td>\n<td>00:00:20.16<\/td>\n<\/tr>\n<tr>\n<td>00:01:15.40<\/td>\n<td>00:01:14.07<\/td>\n<td>00:01:14.10<\/td>\n<td>00:01:10.56<\/td>\n<\/tr>\n<tr>\n<td>00:01:34.66<\/td>\n<td>00:01:17.97<\/td>\n<td>00:01:23.60<\/td>\n<td>00:01:22.15<\/td>\n<\/tr>\n<tr>\n<td>00:01:11.99<\/td>\n<td>00:00:54.07<\/td>\n<td>00:01:11.70<\/td>\n<td>00:00:43.20<\/td>\n<\/tr>\n<\/table>\n<p>The speed-up gain by using these techniques may vary depending on your project specifics. In some cases the gain may not be significant or the build time may actually increase. You should play around with these settings and enable them only when they help you.<\/p>\n<p>In summary, some of the strategies that can help increase your build times are:<\/p>\n<ul>\n<li>break dependencies between projects they can be built in parallel<\/li>\n<li>if you have large projects try to break them in smaller, independent projects; the more such projects you have the more work can be done in parallel<\/li>\n<li>use multi-processor compilation (\/MP) for C++ projects to enable compiling multiple translation units at the same time<\/li>\n<li>move framework headers (STL, MFC, ATL, etc.) and other headers that do not change and are included all over your project to the pre-compiled header<\/li>\n<li>use a SSD and keep your sources on it<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The larger a VC++ project is (or any project for that matter) the more time it takes to build. If you have solutions with many large projects the build times could get into your way. Starting a rebuild and going to lunch was a common scenario for me, as building took 20-25 minutes. Of course, &#8230; <a title=\"Speed-up VC++ builds\" class=\"read-more\" href=\"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/\" aria-label=\"Read more about Speed-up VC++ builds\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[52,10],"tags":[114,451,385,386,387,55],"class_list":["post-1680","post","type-post","status-publish","format-standard","hentry","category-tools","category-visual-studio","tag-build","tag-c","tag-compiler","tag-optimization","tag-speedup","tag-visualstudio"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"Describes a few strategies for speeding up the full build time for VC++ projects.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Marius Bancila\"\/>\n\t<meta name=\"keywords\" content=\"visualstudio,c++,compiler,optimization,build,speedup\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Marius Bancila&#039;s Blog | About code. Mostly on C++\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Speed-up VC++ builds\" \/>\n\t\t<meta property=\"og:description\" content=\"Describes a few strategies for speeding up the full build time for VC++ projects.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-09-24T09:49:17+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-09-24T09:49:17+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Speed-up VC++ builds\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Describes a few strategies for speeding up the full build time for VC++ projects.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#article\",\"name\":\"Speed-up VC++ builds\",\"headline\":\"Speed-up VC++ builds\",\"author\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/09\\\/vcbuild1.png\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#articleImage\",\"width\":757,\"height\":441},\"datePublished\":\"2013-09-24T11:49:17+02:00\",\"dateModified\":\"2013-09-24T11:49:17+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#webpage\"},\"articleSection\":\"Tools, Visual Studio, build, C++, compiler, optimization, speedup, VisualStudio\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/#listItem\",\"name\":\"IT\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/#listItem\",\"position\":2,\"name\":\"IT\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/#listItem\",\"name\":\"Software\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/#listItem\",\"position\":3,\"name\":\"Software\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/visual-studio\\\/#listItem\",\"name\":\"Visual Studio\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/#listItem\",\"name\":\"IT\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/visual-studio\\\/#listItem\",\"position\":4,\"name\":\"Visual Studio\",\"item\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/visual-studio\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#listItem\",\"name\":\"Speed-up VC++ builds\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/#listItem\",\"name\":\"Software\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#listItem\",\"position\":5,\"name\":\"Speed-up VC++ builds\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/category\\\/it\\\/software\\\/visual-studio\\\/#listItem\",\"name\":\"Visual Studio\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#organization\",\"name\":\"Marius Bancila's Blog\",\"description\":\"About code. Mostly on C++\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Marius Bancila\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a84dd2831d955c38355ddea55df4df260809b88f36408bc14fd4eab8f7f131c9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Marius Bancila\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#webpage\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/\",\"name\":\"Speed-up VC++ builds\",\"description\":\"Describes a few strategies for speeding up the full build time for VC++ projects.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/2013\\\/09\\\/24\\\/speed-up-vcpp-builds\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2013-09-24T11:49:17+02:00\",\"dateModified\":\"2013-09-24T11:49:17+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/\",\"name\":\"Marius Bancila's Blog\",\"description\":\"About code. Mostly on C++\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/mariusbancila.ro\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Speed-up VC++ builds","description":"Describes a few strategies for speeding up the full build time for VC++ projects.","canonical_url":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/","robots":"max-image-preview:large","keywords":"visualstudio,c++,compiler,optimization,build,speedup","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#article","name":"Speed-up VC++ builds","headline":"Speed-up VC++ builds","author":{"@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/mariusbancila.ro\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/mariusbancila.ro\/blog\/wp-content\/uploads\/2013\/09\/vcbuild1.png","@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#articleImage","width":757,"height":441},"datePublished":"2013-09-24T11:49:17+02:00","dateModified":"2013-09-24T11:49:17+02:00","inLanguage":"en-US","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#webpage"},"isPartOf":{"@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#webpage"},"articleSection":"Tools, Visual Studio, build, C++, compiler, optimization, speedup, VisualStudio"},{"@type":"BreadcrumbList","@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/mariusbancila.ro\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/#listItem","name":"IT"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/#listItem","position":2,"name":"IT","item":"https:\/\/mariusbancila.ro\/blog\/category\/it\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/#listItem","name":"Software"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/#listItem","position":3,"name":"Software","item":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/#listItem","name":"Visual Studio"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/#listItem","name":"IT"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/#listItem","position":4,"name":"Visual Studio","item":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/","nextItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#listItem","name":"Speed-up VC++ builds"},"previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/#listItem","name":"Software"}},{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#listItem","position":5,"name":"Speed-up VC++ builds","previousItem":{"@type":"ListItem","@id":"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/#listItem","name":"Visual Studio"}}]},{"@type":"Organization","@id":"https:\/\/mariusbancila.ro\/blog\/#organization","name":"Marius Bancila's Blog","description":"About code. Mostly on C++","url":"https:\/\/mariusbancila.ro\/blog\/"},{"@type":"Person","@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author","url":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/","name":"Marius Bancila","image":{"@type":"ImageObject","@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/a84dd2831d955c38355ddea55df4df260809b88f36408bc14fd4eab8f7f131c9?s=96&d=mm&r=g","width":96,"height":96,"caption":"Marius Bancila"}},{"@type":"WebPage","@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#webpage","url":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/","name":"Speed-up VC++ builds","description":"Describes a few strategies for speeding up the full build time for VC++ projects.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/mariusbancila.ro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/#breadcrumblist"},"author":{"@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/#author"},"datePublished":"2013-09-24T11:49:17+02:00","dateModified":"2013-09-24T11:49:17+02:00"},{"@type":"WebSite","@id":"https:\/\/mariusbancila.ro\/blog\/#website","url":"https:\/\/mariusbancila.ro\/blog\/","name":"Marius Bancila's Blog","description":"About code. Mostly on C++","inLanguage":"en-US","publisher":{"@id":"https:\/\/mariusbancila.ro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Marius Bancila's Blog | About code. Mostly on C++","og:type":"article","og:title":"Speed-up VC++ builds","og:description":"Describes a few strategies for speeding up the full build time for VC++ projects.","og:url":"https:\/\/mariusbancila.ro\/blog\/2013\/09\/24\/speed-up-vcpp-builds\/","article:published_time":"2013-09-24T09:49:17+00:00","article:modified_time":"2013-09-24T09:49:17+00:00","twitter:card":"summary","twitter:title":"Speed-up VC++ builds","twitter:description":"Describes a few strategies for speeding up the full build time for VC++ projects."},"aioseo_meta_data":{"post_id":"1680","title":"Speed-up VC++ builds","description":"Describes a few strategies for speeding up the full build time for VC++ projects.","keywords":[{"label":"VisualStudio","value":"VisualStudio"},{"label":"C++","value":"C++"},{"label":"compiler","value":"compiler"},{"label":"optimization","value":"optimization"},{"label":"build","value":"build"},{"label":"speedup","value":"speedup"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-18 21:11:01","updated":"2025-12-12 07:40:13","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"author_meta":{"display_name":"Marius Bancila","author_link":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/"},"featured_img":null,"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Marius Bancila","author_link":"https:\/\/mariusbancila.ro\/blog\/author\/admin\/"},"uagb_comment_info":1,"uagb_excerpt":"The larger a VC++ project is (or any project for that matter) the more time it takes to build. If you have solutions with many large projects the build times could get into your way. Starting a rebuild and going to lunch was a common scenario for me, as building took 20-25 minutes. Of course,&hellip;","coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/tools\/\" class=\"advgb-post-tax-term\">Tools<\/a>","<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/\" class=\"advgb-post-tax-term\">Visual Studio<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">Tools<\/span>","<span class=\"advgb-post-tax-term\">Visual Studio<\/span>"]},"tags":{"linked":["<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/\" class=\"advgb-post-tax-term\">build<\/a>","<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/\" class=\"advgb-post-tax-term\">C++<\/a>","<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/\" class=\"advgb-post-tax-term\">compiler<\/a>","<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/\" class=\"advgb-post-tax-term\">optimization<\/a>","<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/\" class=\"advgb-post-tax-term\">speedup<\/a>","<a href=\"https:\/\/mariusbancila.ro\/blog\/category\/it\/software\/visual-studio\/\" class=\"advgb-post-tax-term\">VisualStudio<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">build<\/span>","<span class=\"advgb-post-tax-term\">C++<\/span>","<span class=\"advgb-post-tax-term\">compiler<\/span>","<span class=\"advgb-post-tax-term\">optimization<\/span>","<span class=\"advgb-post-tax-term\">speedup<\/span>","<span class=\"advgb-post-tax-term\">VisualStudio<\/span>"]}},"comment_count":"1","relative_dates":{"created":"Posted 13 years ago","modified":"Updated 13 years ago"},"absolute_dates":{"created":"Posted on September 24, 2013","modified":"Updated on September 24, 2013"},"absolute_dates_time":{"created":"Posted on September 24, 2013 11:49 am","modified":"Updated on September 24, 2013 11:49 am"},"featured_img_caption":"","series_order":"","jetpack_shortlink":"https:\/\/wp.me\/pYNdv-r6","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts\/1680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/comments?post=1680"}],"version-history":[{"count":24,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts\/1680\/revisions"}],"predecessor-version":[{"id":1707,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/posts\/1680\/revisions\/1707"}],"wp:attachment":[{"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/media?parent=1680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/categories?post=1680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mariusbancila.ro\/blog\/wp-json\/wp\/v2\/tags?post=1680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}