{"id":35977,"date":"2025-11-12T17:12:48","date_gmt":"2025-11-12T17:12:48","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/cppblog\/?p=35977"},"modified":"2025-11-14T00:20:07","modified_gmt":"2025-11-14T00:20:07","slug":"optimize-your-c-build-times-with-github-copilot","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/optimize-your-c-build-times-with-github-copilot\/","title":{"rendered":"Optimize Your C++ Build Times with GitHub Copilot"},"content":{"rendered":"<p>Long build times are one of the top pain points for C++ projects. If you\u2019ve ever waited too long for a C++ build to finish, you know how much it can slow down your productivity. In past years, we introduced <a href=\"https:\/\/aka.ms\/cpp\/buildinsights\">C++ Build Insights<\/a> to help you analyze traces and find bottlenecks. However, we know that embarking on these investigations manually can still take time and effort.<\/p>\n<p>To make this experience easier for C++ developers, we\u2019re excited to announce that <strong>GitHub Copilot build performance for Windows<\/strong> is now <a href=\"https:\/\/aka.ms\/cpp-agents-private-preview\">available in Private Preview<\/a> with the latest version of Visual Studio 2026 Insiders.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/cpp-build-performance-private-preview\" target=\"_blank\">Sign up for Private Preview<\/a><\/div><\/p>\n<h2>New GitHub Copilot Capabilities<\/h2>\n<p>When you use this new capability in Visual Studio, GitHub Copilot will use an agent to:<\/p>\n<ol>\n<li>Kick off a build and capture a trace for you<\/li>\n<li>Identify expensive headers and other bottlenecks<\/li>\n<li>Suggest and apply optimizations like precompiled headers<\/li>\n<li>Validate changes through rebuilds so your code stays correct<\/li>\n<li>Show you measurable improvements and recommend next steps<\/li>\n<\/ol>\n<p>Instead of spending time manually optimizing your build, you can let the new GitHub Copilot build performance capability handle the heavy lifting while you focus on writing code.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/11\/bpa_demo.webp\" data-wp-editing=\"1\"><img decoding=\"async\" class=\"aligncenter wp-image-36099\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/11\/bpa_demo-686x1024.webp\" alt=\"a screenshot showing analysis and proposed plan by @BuildPerfCpp\" width=\"400\" height=\"597\" srcset=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/11\/bpa_demo-686x1024.webp 686w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/11\/bpa_demo-201x300.webp 201w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/11\/bpa_demo-768x1146.webp 768w, https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2025\/11\/bpa_demo.webp 936w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>To see how it works in action, please watch our demo below.\n<iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/twQTixBZen8?si=UZiN9BhVxO51YkOQ\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2><strong>Try it now in Private Preview<\/strong><\/h2>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/cpp-build-performance-private-preview\" target=\"_blank\">Sign up for Private Preview<\/a><\/div><\/p>\n<p>GitHub Copilot build performance for Windows is available today in <strong>Private Preview<\/strong> for Visual Studio 2026 Insiders. To try it out, join the Private Preview <a href=\"https:\/\/aka.ms\/cpp-build-performance-private-preview\">waitlist<\/a> today. We\u2019re looking forward to your feedback to make this experience even better.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Long build times are one of the top pain points for C++ projects. If you\u2019ve ever waited too long for a C++ build to finish, you know how much it can slow down your productivity. In past years, we introduced C++ Build Insights to help you analyze traces and find bottlenecks. However, we know that [&hellip;]<\/p>\n","protected":false},"author":39811,"featured_media":34436,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3947,3948,1],"tags":[3954,3884,140],"class_list":["post-35977","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-build-insights","category-build-optimization","category-cplusplus","tag-build-insights","tag-build-time","tag-c"],"acf":[],"blog_post_summary":"<p>Long build times are one of the top pain points for C++ projects. If you\u2019ve ever waited too long for a C++ build to finish, you know how much it can slow down your productivity. In past years, we introduced C++ Build Insights to help you analyze traces and find bottlenecks. However, we know that [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/35977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/39811"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=35977"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/35977\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/34436"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=35977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=35977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=35977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}