VS2010 loading very slow - visual-studio-2010

My visual studio 2010 has been loading slow lately (takes almost 2 minutes to start up, sometimes hangs even longer).
I've debugged it with devenv /log then pasted the ActivityLog.xml into excel and then calculated the time difference between each logged step.
694: Information: VSCommands is up to date [10.3.9.12]
695: Information:
696: Information: Web : http://vscommands.squaredinfinity.com
697: Information: Twitter: http://twitter.com/vscommands
698: Information: Email : support#vscommands.com
699: Begin export of category 'Environment_CallBrowser' ({50B05A5D-9174-48eb-851A-B1C616A0B43D}) from package 'Visual Studio Environment Package' ({DA9FB551-C724-11D0-AE1F-00A0C90FFFC3}). 3176716 KB of virtual memory currently available.
700: End export of category 'Environment_CallBrowser' ({50B05A5D-9174-48eb-851A-B1C616A0B43D}). 3176716 KB of virtual memory currently available.
Supposedly between step 698 and 699 it took 71 seconds and I have no idea why?

I've had this issue before - Deleting the associated .suo file will help, since they become a bit bloated over time. You'll lose bookmarks and preferences, however.

Tools > Options Environment > Add-in/Macros Security -- UNCHECK "Allow Add-in components to load" Tools > Extension Manager Uninstall all you don't need.
Tools > Options > Environment > Uncheck "Automatically adjust visual experience based on client performance" then uncheck "Enable rich client visual experience". Tools > Options > Environment > Startup: At startup = "Show empty environment" Tools > Options > Source Control Set to "None"

Related

How to fix visual studio after it suddenly gets too slow [duplicate]

This question already has answers here:
Visual Studio 2017 is too slow during building and debugging
(12 answers)
Closed last year.
Does any one face long time build process to run a website with visual studio 2019 and asp.net?
I tried to Free up some space in the disk and End up some tasks to free RAM memory, clear visual studio cashe but the peoblem still
Any suggestion regarding this issue, it is so frustrating to develop with such speed.
SOLVED
This was solved by setting source control to None and disable stratup in the task manager and followed the instructions posted below
# Nadin Martini.
For improving the build speed of Visual Studio 2019, some attributes can be applied as follows:
Set Current source control plug-in to None under "Tools" -> "Options"->”Source Control ”.
Uncheck Synchronized Visual Studio settings across devices under "Tools" -> "Options"->”Environment ” ->”Accounts ”
Uncheck Enable CodeLens under "Tools" -> "Options"->”Text Editor ” ->”All Languages ”.
If you have hardware acceleration enabled, or if you use the default visual experience settings you may experience intermittent performance issues, product crashes, or rendering issues.
You could apply the following settings under "Tools" -> "Options"->” Environment ” ->” General ”.
Delete the contents of the following directories:
Clean the content in WebSiteCache folder
(can be found in C:\Users%USERNAME%\AppData\Local\Microsoft\WebSiteCache).
Clean the content in Temporary ASP.NET Files folder
(can be found in C:\Users%USERNAME%\AppData\Local\Temp\Temporary ASP.NET Files)
For more information, you can visit here.

Horrible Visual Studio 2013 Performance

Visual Studio Ultimate 2013 has been a nightmare. There seems to be a long delay between when I press a key and when it appears in the code editor window. When I scroll, either in the code editor or in the navigation pane, it takes many seconds. I've had similar problems with VS 2010 and VS 2012 (see Visual Studio 2012 Ultimate slow while editing C# code). Another person had a similar problem, none of their solutions helped me with mine (Visual Studio 2012 Ultimate slow while editing C# code).
My machine is running Windows 8.1, has an Intel i7 and 16GB of RAM, and a Samsung SSD. It's pretty fast.
What I've experienced:
Visual Studio absolutely hammers the registry per Process Monitor
HKLM\SOFTWARE\Wow6432Node\Microsoft\CTF\KnownClasses
HKLM\SOFTWARE\Wow6432Node\Microsoft\Cryptography\Defaults\Provider Types\Type 001 HKLM\SOFTWARE\Microsoft\Cryptography
HKLM\SOFTWARE\Wow6432Node\Microsoft\Cryptography\Defaults\Provider
Types\Type 001\Name HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid
HKCR\Drive\shellex\FolderExtensions, HKCU\Software\Classes
HKLM\Software\Wow6432Node\Microsoft\Cryptography\DESHashSessionKeyBackward
HKLM\SOFTWARE\Wow6432Node\Microsoft\Cryptography\Defaults\Provider\Microsoft
Enhanced Cryptographic Provider v1.0\Image Path
Processor Monitor also shows that, when I attempt to interact with the code in any way, VS literally kicks off about 85,000 events, all containing access to files in the project and the registry keys listed above. There are also a lot of 'NotifyChangeDirectory' events to my user home directory and a lot of 'Thread Create' and 'Thread Exit' events.
What I've tried:
deleting files/folders in the AppData temp directory unchecked
hardware graphics acceleration (Tools > Options > Environment)
disabled source control plugin (Tools > Options > Source Control)
disabled synchronized settings (Tools > Options > Environment)
disabled auto recover (Tools > Options > Auto Recover) reinstalling
SQL server compact edition 4.0 deleting the .SUO file disabled
codelens rebooting (too many times)
This behavior also happens when I start Visual Studio in safe mode.
Per Task Manager, Visual Studio isn't consuming a lot of CPU/RAM (up to 3% CPU, 150MB of RAM). Additionally, not using BitLocker, disk is unencrypted, and no add-ins are installed in Visual Studio.
This is really, really bad. It's become practically unusable. If anyone has any idea how to fix this, I will be in your debt.
This did it.
I really hope this keeps someone from jumping off the bridge.
NoGit is a great extension, but ultimately it came down to removing the registry entries for the Git source control provider.
http://blog.markrendle.net/disable-the-git-source-control-add-in-in-vs2013-permanently/

Slow performance in Visual Studio 2012 update 4 RC when setting a breakpoint

I'm using Visual Studio 2012 update 4 RC.
When I set a breakpoint in my MVC 4 app (C#), the performance goes drastically down. From << 1sec. to 40-60 seconds for a page refresh (if the page appears at all.....)
Disabling all breakpoints bring the performance to a normal level.
How can I set breakpoint without a major performance penalty?
You may try to delete your .suo file but beware as you may loose your personal solution configuration settings for this solution.
You may also try disabling "Enable property evaluation and other implicit function calls" in Tools > Options > Debugging > General.
Also check this related question:- Visual Studio Debugging/Loading Very Slow
To solve this issue I've quit using the Azure Full Emulator and started using the Emulator Express.
rightclick the azure project
select properties
web emulator -> select 'Use Emulator Express'

Visual Studio 2013 - Debugging mode startup speed

With VS2013 on my machine, new MVC project with no real code written as of yet, the time it takes from F5 (start debugging) until Chrome launches and the page is loaded is about 8 seconds consistently.
On a medium size project, the time is about 20 seconds.
Any tips on how I can speed this up? Any place I can look to try and pinpoint the problem?
You may try disabling "Enable property evaluation and other implicit function calls" in Tools > Options > Debugging > General.
Also check this Visual Studio Debugging/Loading Very Slow

How to handle Visual Studio 2010 Not Responding?

First of all, I am not asking the same question here. ( This may be a duplicate post on Stack Overflow.) I have searched other solutions on MSDN, ASP .NET Forum, Stack Overflow, Code Project and everywhere on internet. But none of them solved my problem. These are the links that I found:
http://blogs.msdn.com/b/kirillosenkov/archive/2012/01/11/vs-hangs-for-1-minute-on-start-debugging-check-for-dead-symbol-paths.aspx
http://www.codeproject.com/Questions/272109/Visual-Studio-2010-Hangs-When-Debugging-App
And a lot more...
My CPU is 4th Generation Intel Core i7 and memory capacity is 8 GB. I think it is more than recommended hardware requirements.
Problem:
My visual studio hangs on these situations.
Opening a solution (Hangs for a minute when I open a file from solution explorer)
Running the debugging (Freezes consistently when I click on debug button) and
Stopping the debugging (Freezes immediately after the UI returns to the Developer layout after debugging)
I have tried the following steps:
I ensured that I deleted all the breakpoints in the solution.
I ensured that I am not using any resources from network drive.
I ensured Step over properties is enabled.
I ensured Enable .NET Framework source stepping is NOT enabled.
I start visual studio with SafeMode to suppress extensions
I cleared watch window.
I cleaned and rebuilt the solution.
Before I encounter this problem, I installed "Install Web Components" Visual Studio Add-In a few weeks ago. May be because of extensions and add-ins?
How can I do it to solve my problem?
If you suspect that Visual Studio settings get corrupted after installing "Install Web Component" bundle, why don't you try to reset the settings?
You can perform the steps below to reset Visual Studio settings:
Open Visual Studio Command Prompt (2010) under Start menu > All Programs > Microsoft Visual Studio 2010 > Visual Studio Tools (Run it with Administrator privilege: Right-click the program > Run as administrator)
Run devenv /Resetsettings to restore the IDE's default settings, optionally resets to the specified VSSettings file.
Run devenv /ResetSkipPkgs to clear all SkipLoading tags added to VSPackages.
Run devenv /Safemode to see if you can apply it correctly. This can eliminate the possibility that third party Add-ins or packages are causing problems.
Open your solution in Safemode and see whether it works.
Found this to happen also when the solution is connected to a Team Foundation Server and the service is not available at the moment, so the solution could not connect. In this case do not end the Visual Studio instance and wait until a message box show up giving the option to Go Offline. This is usually associated with the "Visual Studio is waiting for an operation to complete...." notification message.
My solution was simply to reload a saved GOOD (backup) copy of my settings (made a year ago). Worth trying before resetting everything to blank. My VS2010 would take 60 seconds to start debugging and approx. 3 minutes to stop debugging. I saved the corrupted settings and to my surprise they were over 3MB instead of 260Kb. I loaded the good backup copy and everything is great again :-)
If Visual Studio doesn't respond only when attempting to open solutions, then open a raw instance of Visual Studio then Reset Settings
Check How to: Reset Your Settings from the Tools Menu
http://msdn.microsoft.com/en-us/library/ms247075%28v=vs.90%29.aspx
This is Visual Studio 2013 and Windows 8.1
Open developer command prompt.
Start -> All programs -> Visual Studio -> Visual studio tools -> developer command prompt
Make sure that you don't have any pending changes that need to be checked in.
run this command : "tf workspace /delete 'your workspace/ machine name'"
yes for removing the unnecessary pending changes if at all present.

Resources