{"id":12768,"date":"2020-05-12T11:19:59","date_gmt":"2020-05-12T19:19:59","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/vsnews\/?p=12768"},"modified":"2020-05-12T11:19:59","modified_gmt":"2020-05-12T19:19:59","slug":"aa8dxa4","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/vsnews\/akams-aa8dxa4\/","title":{"rendered":"Faster builds with PCH suggestions from C++ Build Insights"},"content":{"rendered":"<p class=\"\">The creation of a\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/build\/creating-precompiled-header-files?view=vs-2019\" target=\"_blank\" rel=\"noopener noreferrer\">precompiled header (PCH)<\/a>\u00a0is a proven strategy for improving build times. A PCH eliminates the need to repeatedly parse a frequently included header by processing it only once at the beginning of a build. The selection of headers to precompile has traditionally been viewed as a guessing game, but not anymore! In this article, we will show you how to use the\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/introducing-c-build-insights\/\">vcperf analysis tool<\/a>\u00a0and the\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/build-insights\/reference\/sdk\/overview?view=vs-2019\" target=\"_blank\" rel=\"noopener noreferrer\">C++ Build Insights SDK<\/a>\u00a0to pinpoint the headers you should precompile for your project. We\u2019ll walk you through building a PCH for the open source\u00a0<a href=\"https:\/\/github.com\/zaki\/irrlicht\" target=\"_blank\" rel=\"noopener noreferrer\">Irrlicht<\/a>\u00a0project, yielding a 40% build time improvement.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The creation of a\u00a0precompiled header (PCH)\u00a0is a proven strategy for improving build times. A PCH eliminates the need to repeatedly parse a frequently included header by processing it only once at the beginning of a build. The selection of headers to precompile has traditionally been viewed as a guessing game, but not anymore! In this [&hellip;]<\/p>\n","protected":false},"author":18258,"featured_media":8227,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-12768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allskus"],"acf":[],"blog_post_summary":"<p>The creation of a\u00a0precompiled header (PCH)\u00a0is a proven strategy for improving build times. A PCH eliminates the need to repeatedly parse a frequently included header by processing it only once at the beginning of a build. The selection of headers to precompile has traditionally been viewed as a guessing game, but not anymore! In this [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/12768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/users\/18258"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/comments?post=12768"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/posts\/12768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media\/8227"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/media?parent=12768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/categories?post=12768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/vsnews\/wp-json\/wp\/v2\/tags?post=12768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}