Visual Studio 2010을 더 빠르게 만들기위한 성능 팁?
다른 사람이 Visual Studio 2010의 성능에 문제가 있는지는 모르겠지만 매일 닫았다가 다시 열면 한 시간이 지나면 정말 멈춰서 내 타이핑을 따라갈 수 없습니다. . 속도를 높이는 데 도움이되는 분명한 설정이 있습니까?
ReSharper도 사용하고 있지만 제거하더라도 속도가 약간만 증가합니다.
두 사람이 내 기계 사양을 요청했기 때문에 :
Intel Q9550 @ 2.83 GHz
4 Cores
8GB Physical RAM
2x 60GB SSD in RAID0 combination for solution/project
VS2010 RTM Ultimate
Windows Server 2008 x64 R2 (Performance set for Applications)
제 하드웨어가 실제로 꽤 괜찮은데 "더 빠른 하드웨어 구입"이라는 답이 있다는 소식을 듣고 슬프지만.
편집 : TimothyP에서 제안한 Visual Studio 성능 진단 도구에 대한 링크 포함
http://connect.microsoft.com/VisualStudio/Downloads 에서 일부 핫픽스를 설치하는 것이 좋습니다 . 또한 이전에는 성능 문제가 많았으며 잘라 내기 및 붙여 넣기 작업 중에 "메모리 부족"과 같은 메시지를 보았습니다. 이 문제와 다른 일부 (다른 메모리 누수 문제 포함)는 이미 해결되었습니다. http://connect.microsoft.com/VisualStudio/Downloads 에서 일부 핫픽스를 설치 하면 내 컴퓨터에서 Visual Studio의 성능이 훨씬 좋아집니다.
여기에 내 대답을 추가하십시오. ReSharper가 그렇게 많이했다고 생각하지 않았습니다. 모든 옵션을 시도하고 하나의 프로젝트 만로드 한 후에도 단순히 두 줄을 함께 연결하는 것 (두 번의 백 스페이스 프레스)으로도 여전히 지연되었습니다.
ReSharper를 제거하고 제가 수행 한 다른 모든 조정과 함께 작업 속도가 엄청나게 빠릅니다.
RAID0 SSD에 대한 참고 사항 . RAID 컨트롤러 (및 드라이버!)가 RAIDed SSD 용 TRIM을 지원하는지 확인해야합니다. 대부분의 RAID 컨트롤러, 특히 인텔 칩셋 컨트롤러는이 작업을 수행하지 않습니다. 결과적으로 I / O 성능은 SSD 기반 RAID 어레이에서 매우 크게 저하됩니다.
Windows 7 및 Windows 2008R2는 컨트롤러 및 드라이버가이를 구현할 때 TRIM 명령을 지원합니다.
tomshardware.com 또는 anandtech.com과 같은 사이트에이 주제에 대한 많은 내용이 있습니다. 다른 모든 방법이 실패하면 비 RAID에서 SSD를 사용하거나 OS에 SSD를 사용하고 데이터베이스에 일반 HD를 사용하는 것을 고려할 수 있습니다. 앞서 언급 한 사이트 중 하나에서 특정 SSD를 찾을 수도 있습니다. 성능은 생각보다 훨씬 더 많이 다릅니다.
IntelliTrace를 끄십시오. 이 기능으로 인해 속도 저하 및 불안정과 관련된 많은 문제가있었습니다 (그냥 나일 수도 있습니다). 설정은 도구> 옵션> IntelliTrace> IntelliTrace 활성화에 있습니다.
물론 RAM은 Visual Studio, 특히 2010 버전과 같은 대규모 개발 환경, 특히 IntelliTrace 및 아키텍처 및 모델링 다이어그램 과 같은 상당히 메모리 집약적 인 기능을 포함하는 Ultimate 버전을 사용하는 경우 항상 매우 중요합니다 .
그러나 종종 간과되지만 Visual Studio의 전반적인 성능에 큰 차이를 만들 수있는 주요 요소 중 하나는 하드 드라이브 속도 입니다.
Scott Guthrie (Microsoft의 .NET 개발자 플랫폼 부사장)는이 정확한 주제에 대해 매우 흥미로운 기사를 작성했습니다.
그것은, 그러나, 그것은 이후 오늘날에도 매우 관련이 몇 살이고, 비주얼 스튜디오 2005의시기에 기록 된 방법 비주얼 스튜디오 작업에 (컴파일러 작업 구체적 방법을) 계속 시간이 것을 더 이상 이렇게 변경되지 않았습니다 .
Scott은 다음과 같이 씁니다.
사람들은 종종 회의에서 PC 하드웨어 권장 사항을 요청합니다. 특히- "Visual Studio로 개발하기 위해 어떤 유형의 컴퓨터를 사용하는 것이 좋습니까?" 및 / 또는 "노트북이 정말 빠른 것 같습니다. 어떤 유형입니까?"
이 주제에 대한 내 권장 사항 중 일부는 상당히 표준적이고 분명합니다. 이상적으로는 듀얼 코어 또는 더 나은 CPU를 원합니다. 또한 항상 최소 2GB 이상의 RAM을 확보하는 것이 좋습니다.
종종 사람들을 놀라게하는 것처럼 보이는 권장 사항은 새 컴퓨터를 구입할 때 항상 가능한 가장 빠른 하드 드라이브를 확보하고 필요한 경우 추가 CPU 프로세서 속도를 구입하는 대신 더 빠른 속도에 투자하는 것입니다. 대신 디스크.
또한:
하드 드라이브 속도가 중요한 이유는 무엇입니까?
머신의 멀티 코어 CPU는 지난 몇 년 동안 충분히 빨라져서 대부분의 일반적인 애플리케이션 시나리오에서 일반적으로 머신의 사용 가능한 프로세서> 용량을 차단하지 않습니다.
차단할 가능성이 훨씬 더 높은 것은 컴퓨터가 하드 드라이브에 액세스하는> 검색 및 I / O 속도 용량입니다. 많은 파일을> 읽거나 써야하는 응용 프로그램을 사용하는 경우 CPU 프로세서 사용률이> 정말로 낮은 것이 일반적이지 않습니다. 응용 프로그램이 디스크 작업을 기다리는 데 대부분의 시간을 소비 할 수 있기 때문입니다. 완료합니다.
Visual Studio를 사용하여 개발을 수행하면 많은> 파일을 읽고 쓰고 디스크 I / O 작업을 수행하는 데 많은 시간을 소비하게됩니다. 대규모 프로젝트 및> 솔루션에는 수백 (또는 수천)의 소스 파일 (이미지, CSS,> 페이지, 사용자 컨트롤 등 포함)이있을 수 있습니다. 프로젝트를 열 때 Visual Studio는 intellisense를 제공하기 위해 모든 소스 파일을 읽고 구문 분석해야합니다. > source control에 참여하고 파일을 체크 아웃하면 디스크에서 파일과 타임 스탬프를 업데이트하는 것입니다. 솔루션을 컴파일 할 때 Visual Studio는> 여러 디스크 경로 위치에서 업데이트 된 어셈블리를 확인하고,> 컴파일이 완료되면 디스크에 여러 새 어셈블리를 작성하고, 다음을 사용하여 디스크에 .pdb 디버거 기호 파일을 유지합니다. (모두> 별도의 파일 저장 작업으로).
If you have a slow hard-drive, Visual Studio will end up being blocked as it waits for it >to complete these read/write operations - which can really slow down your overall >development experience.
You can read the full article here:
Tip/Trick: Hard Drive Speed and Visual Studio Performance
Do you have the Desktop Experience component enabled in your Server 2008 R2 install? Unlike prior versions, Visual Studio 2010 makes heavy use of WPF and its performance benefits greatly from hardware acceleration. Enabling Desktop Experience will enable the Desktop Window Manager, which improves overall WPF performance.
For the same reason, you should ensure you are using the newest video drivers available.
If you are using many projects to build together in your solution I recommend to set to NOT BUILD in the project properties configuration. This is what I do to speed up mine. It is more evident in the Compile time...
With that kind of hardware, IMHO you shouldn't have any kind of trouble with performance almost no matter what you do. (2 x SSD in RAID-0? -- you're a maniac!!)
It looks like you've already solved this problem (is there anything specific that you did that you could share?), but another thing to check is to make sure your video drivers are up to date. It's surprising, but they can affect a lot of things you wouldn't suspect.
I suppose another culprit could be a hyperactive anti-virus package, too...
I love the suggestion of upgrades when clearly the machine is blazing. My suggestion, if possible would be to try out 2008 and see how it runs. I had several problems myself with 2010, least of all being the performance issue. For the sake of productivity I switched back to 2008.
If you can confirm that the problem does or doesn't occur on an older version we can have more of an idea where the problem lies.
The brand/controller of your SSDs is more important than the fact that they are SSD. Don't buy a cheap/budget SSD - you'd be better off with a good platter drive. Splurge on the high end SSDs and you'll experience major gains.
If you're editing XAML, you can just use the source code editor instead of the XAML editor. The performance difference is phenomenal:
http://msdn.microsoft.com/en-us/library/bb907321(v=vs.90).aspx
It's worth noting that if you open the xaml editor at any point, then you'll need to restart Visual Studio to get the performance back to normal. It's not sufficient to close the xaml editor.
The only way to get an ssd on raid0 with trim support is with the new ocz revo 3, 1.5GB Read/1.25GB Write, A more affordable and stable solution to raided ssd with no trim is to buy an ssd on sata 3 (550MB/s).
As Matt mentioned, you might want to add more RAM to your machine, but if it really "bogs down" every time you leave it open for an hour you might want to get in contact with the VS team (http://connect.microsoft.com), file a bug report and run the performance diagnostics tools they will send you.
Those guys have really helped me a lot in the past and I'm sure they'd be willing to help you track down the real reason behind the slow downs.
Aside from that I can tell you that my main development machine has 8 Xeon cores and 12GB of RAM. On that machine large solutions compile in just a few seconds while they can take up to a minute to compile on my dual core macbook. But since the RTM version I have not experienced any slow downs like the ones you are describing.
I'm assuming you are using the RTM version here, can you give us the specs of your machine? Hardware + Software?
It's very hard to help you based on limited information.
I'm assuming you're using C#, but if you're using C++, maybe you could try turning off intellisense? I thought it was supposed to be better in 2010, but the previous versions always got a speed boost when I hacked out intellisense.
If it's the same as 2005, you can disable intellisense by renaming feacp.dll in [vs root dir]\vc\vcpackages.
참고URL : https://stackoverflow.com/questions/3097421/performance-tips-for-making-visual-studio-2010-faster
'Program Tip' 카테고리의 다른 글
Haskell에서 신경망 구현 (0) | 2020.10.17 |
---|---|
Corona SDK의 타일을 한 단어로 결합하여 Breakout 게임 그리드를 만드시겠습니까? (0) | 2020.10.17 |
window.onbeforeunload가 iPad에서 작동하지 않습니까? (0) | 2020.10.17 |
Ctrl + A와 Ctrl + Shift + A를 다르게 매핑하는 방법은 무엇입니까? (0) | 2020.10.17 |
스칼라의 믹스 인 vs 컴포지션 (0) | 2020.10.17 |