none
Visual Studio Compile issue

    Question

  • My Visual Studio 2015 with Update 2 compile C++ project is very slow. Why? Other project type compile takes about 5~15 second. But the C++ project spend more than 30 second. How can I speed up my C++ project compile time?
    Tuesday, June 28, 2016 12:20 PM

Answers

  • Hi  pokjikmnb,

    According to your description,  the speed of compile C++ project is become slow down with VS2015 update2.

    Does this situation appear in every C++ project you have created?  If you create a c++ project by default and compile it,  does the compile time is more than 30 second?

    VS2015 support multicore compiler, we could enable the feature by setting two parameters:

    Right-click the C++ project and choose

    1. Properties -> Configuration Properties -> C/C++ -> Code Generation -> Enable Minimal Rebuild -> No(/Gm-)
    2. Properties -> Configuration Properties -> C/C++ -> Geneal -> Multi-processor Compilation -> Yes(/MP)

    If the methods above you have tried and the problem also exists, and the  release of VS2015 update3 is enable to download, I suggest you update your VS which has made improvements in C++ Compiler. The download link please refer to:

    https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update3-vs

    I think this thread may be helpful for you which is related to improve the speed of compile C++ project:

    https://social.msdn.microsoft.com/Forums/en-US/b82804aa-2580-424a-a7f1-e58e9440a720/vs2008-compiles-slow-after-sp1-update?forum=vcgeneral

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by pokjikmnb Thursday, June 30, 2016 1:25 PM
    Wednesday, June 29, 2016 6:33 AM
    Moderator

All replies

  • Hi  pokjikmnb,

    According to your description,  the speed of compile C++ project is become slow down with VS2015 update2.

    Does this situation appear in every C++ project you have created?  If you create a c++ project by default and compile it,  does the compile time is more than 30 second?

    VS2015 support multicore compiler, we could enable the feature by setting two parameters:

    Right-click the C++ project and choose

    1. Properties -> Configuration Properties -> C/C++ -> Code Generation -> Enable Minimal Rebuild -> No(/Gm-)
    2. Properties -> Configuration Properties -> C/C++ -> Geneal -> Multi-processor Compilation -> Yes(/MP)

    If the methods above you have tried and the problem also exists, and the  release of VS2015 update3 is enable to download, I suggest you update your VS which has made improvements in C++ Compiler. The download link please refer to:

    https://www.visualstudio.com/en-us/news/releasenotes/vs2015-update3-vs

    I think this thread may be helpful for you which is related to improve the speed of compile C++ project:

    https://social.msdn.microsoft.com/Forums/en-US/b82804aa-2580-424a-a7f1-e58e9440a720/vs2008-compiles-slow-after-sp1-update?forum=vcgeneral

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by pokjikmnb Thursday, June 30, 2016 1:25 PM
    Wednesday, June 29, 2016 6:33 AM
    Moderator
  • Thank you. The last link help me solve my problem.
    Thursday, June 30, 2016 1:25 PM