惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
B
Blog
The GitHub Blog
The GitHub Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
月光博客
月光博客
人人都是产品经理
人人都是产品经理
IT之家
IT之家
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
C
Check Point Blog
罗磊的独立博客

C++ Team Blog

Bringing Correctly Rounded Math to Production with LLVM-libc - C++ Team Blog C++ in the Age of AI: Visual Studio at CppCon 2026 - C++ Team Blog What’s New for C++ Developers in Visual Studio 2026 (18.7 – 18.10) - C++ Team Blog Microsoft at CppCon 2026 - C++ Team Blog MSVC C++23: constexpr cmath with LLVM Libc - C++ Team Blog MSVC Build Tools Preview updates – September 2026 - C++ Team Blog Clearer Build Optimization Results with GitHub Copilot - C++ Team Blog MSVC Build Tools Preview updates - August 2026 - C++ Team Blog What's New in vcpkg (Jul 2026) - C++ Team Blog Pure Virtual C++ 2026 Is a Wrap - C++ Team Blog Pure Virtual C++ 2026 Is Now Live! - C++ Team Blog C++ Dependencies Without the Headache: vcpkg + Copilot CLI - C++ Team Blog Pure Virtual C++ 2026 Is Tomorrow and On-Demand Sessions Are Now Available - C++ Team Blog Pure Virtual C++ 2026 [Meet the Speakers, Part 3]: Modernizing C++ - C++ Team Blog MSVC Build Tools Preview updates - July 2026 - C++ Team Blog Rethinking C++ Performance: Faster Code Navigation and GitHub Copilot Tools with Whole Codebase Indexing - C++ Team Blog Pure Virtual C++ 2026 [Meet the Speakers, Part 2]: The AI-Native C++ Developer Workflow - C++ Team Blog Pure Virtual C++ 2026 [Meet the Speakers, Part 1]: Build Faster, Run Faster - C++ Team Blog What's New in vcpkg (June 2026) - C++ Team Blog Pure Virtual C++ 2026 Talks Announced - C++ Team Blog Save the Date: Pure Virtual C++ 2026 - C++ Team Blog Streamline C++ Code Intelligence Setup in Copilot CLI - C++ Team Blog Boosting Adobe Photoshop’s Performance with MSVC and SPGO - C++ Team Blog GitHub Copilot modernization for C++ is out of preview MSVC Build Tools Preview updates – June 2026 What’s New in vcpkg (May 2026) What’s New for C++ Developers in Visual Studio 2026 (18.1 – 18.6) Introducing Sample Profile Guided Optimization in MSVC NuGet PackageReference for C++ Projects in Visual Studio Segment Heap support for C++ projects in Visual Studio
Faster C++ iterative builds with GitHub Copilot - C++ Tea...
David Li · 2026-07-17 · via C++ Team Blog

Slow builds are a consistent theme of feedback from C++ developers. We built GitHub Copilot build performance for Windows so you can leverage Copilot to optimize your project’s build times. This workflow will find optimizations that bring your build times down.

At first, we only measured the impact of build optimizations on full clean builds. While that number is valuable, we know that you are not rebuilding from scratch on most days. You edit a file and build, then repeat the process as part of your iterative loop.

Working with customers after the public preview, we noticed that every now and then, the agent proposed a change that made the clean build slightly slower. On its own, that suggestion may look like a regression you would reject. After further investigation, we learned that the same change can often make the iterative build faster. For instance, you may want a faster iterative build in exchange for your full builds to be a little slower.

This is how we came up with the iterative build tool. Today, you can measure how each change affects your iterative builds and not just your clean builds, right inside GitHub Copilot build performance for Windows. The tool is available now in Visual Studio 2026 18.6.1 Stable and 18.7 Insiders. You will see both numbers side by side so you can make the right call for your team.

A screenshot of the C++ Build Performance agent landing page in GitHub Copilot Chat

Iterative Build Tool

We learned that a full rebuild doesn’t always reflect how you work from day to day. For example, precompiled headers can look slower in a clean rebuild but make your real, everyday incremental builds noticeably faster. When the agent sees a change that looks worse in a full rebuild, it won’t throw it away. Instead, the agent reruns a comparable incremental build to check whether the change helps your workflow.

The iterative build tool is the newest part of the agent’s optimization loop. It attempts a change, runs a quick build to check whether the change helped, then decides what to do next. If a change made things worse or did nothing, the agent rolls it back and tries something else. If it improves your build time, the agent keeps it and moves on. Then, it will present all the changes to you at the end of the flow. With the new tool, the agent now takes smaller steps and gives faster feedback through fewer wasted builds while giving you the ultimate decision. With these optimizations, you can apply them to configurations you use on a day-to-day basis with the decision ultimately being yours.

Try It Now

The iterative build tool ships as part of GitHub Copilot build performance for Windows in Visual Studio 2026 18.6.

  1. Open a C++ project and type in Copilot Chat: “make my build faster”
    1. If you want to test the tool on a sample project, we recommend libmodem.
  2. The agent will capture a trace, then apply optimizations.
  3. If the build time increases after agent changes, the agent will seek approval to run experiments.
    1. step 1 of iterative build approval
  4. After accepting, the Iterative Build Tool will fire and request your permission to test with agent changes.
    1. step 2 of iterative build approval
  5. The agent will also ask for permission to establish a baseline measurement.
    1. step 3 of iterative build approval
  6. You will then be asked to run a regular build. If you are using CMake, you will be asked for an additional approval after CMake generation has finished.
    1. step 4 of iterative build approval
  7. Finally, the agent asks if you would like to apply the optimizations that will improve your iterative build.
    1. step 5 of iterative build approval

Feedback Wanted

As always, your feedback provides crucial guidance on how we build our products. If you try the iterative build tool on a real project, we would love to hear how it goes. Please give us feedback by filling out this survey. We encourage you to share your thoughts with us by commenting below, through Help > Send Feedback in Visual Studio, or on X (@VisualC). Thank you for your continued support!

Learn more: Documentation for GitHub Copilot build performance for Windows | Microsoft Learn

Category

Topics

Author

David Li

I am a video game developer focused PM on the Visual C++ Team. Talk to me about video games!