This is the fifth day of my participation in Gwen Challenge

  • The problem
  • To solve
  • At the end

Hello, everyone, MY name is Data-mining, alias Liuzhen007, China Bond, a code-cracking Bond, has worked for traditional radio and television giants and audio and video Internet companies, with rich experience in audio and video live broadcast and vod, have a very deep understanding of WebRTC, FFmpeg and Electron.

The problem

The C++ project in vs2008 compiled slower and slower, and I don’t know why, until it was so slow that I couldn’t stand it — nearly ten minutes! Ten minutes! Ten minutes!

This is the verification of Lu Xun in the “Memory of Liu Hezhen Jun” one sentence: silence ah, silence, no longer silence in the outbreak, in the silence of death.

PS: I can’t take it anymore!!

To solve

After searching the Internet for a lot of information and finding no solution to my problem, I was surprised to find that the project compiled much faster after removing all breakpoints.

The reason is that the company’s product project itself is a large amount of code, plus frequent debugging, breakpoint Settings and more. So the compilation process is slow.

Of course, this is for my own situation, I do not know whether it is universal, if you have tried other methods, but it does not work, you can consider my method.

There are also some other methods found on the Internet, although they are not suitable for their own scenarios, here is a summary, I hope to help you:

1.VS2008 is not upgraded to SP1.

If your VS2008 has not been upgraded to SP1, you can try to hit the PATCH of VS2008 SP1. After some netizens put in patches, the generation of solutions became faster.

You can use VS2008 -> Help -> About Microsoft Visual Studio to check whether you have upgraded to SP1.

2. The compiler may be slow on mobile platform.

First, you need to modify Microsoft.CompactFramework.Com mon. The targets of PlatformVerificationTask part, Name=”PlatformVerificationTask”> Name=”PlatformVerificationTask” Condition=”‘$(SkipPlatformVerification)'” = = ‘true’ “>. Finally, restart VS2008 and recompile to see if the speed is normal. If not, change the value of true to false, then restart VS2008 and recompile. The problem is generally resolved.

At the end

Finally, I would like to talk about my thoughts on solving this problem. Maybe sometimes, we just get used to being comfortable and staying in the comfort zone for a long time is not good for our long-term development. Just like this problem, I should have discovered it earlier and solved it, rather than being forced to take measures when I could not bear it anymore.