如何在慢速硬盘上提高Visual Studio性能?

时间:2021-12-28 03:23:12

I currently have a laptop with a 5400rpm drive. It has visual studio installed and whilst it's just ok for working on, I've read plenty of places that you can get a pretty nice performance boost from VS just by increasing the drive speed.

我目前有一台5400rpm驱动器的笔记本电脑。它安装了视觉工作室,虽然它可以正常工作,但我已经阅读了很多地方,你可以通过提高驱动速度从VS获得相当不错的性能提升。

I don't have that luxury, but I was wondering if I might be able to get some performance benefit from storing my visual studio projects on an external USB or FireWire drive and loading them from there, rather than from the internal disk?

我没有那么奢侈,但我想知道我是否可以通过将我的visual studio项目存储在外部USB或FireWire驱动器上并从那里加载而不是从内部磁盘获得一些性能优势?

9 个解决方案

#1


The USB disk protocols have terrible performance. I have a 3.5-inch SATA disk that gives me 80MB/s read speeds when mounted through my case. The same disk gives me about 30MB/s when in an external USB enclosure. The limiting factor is the protocol, which can deliver only about half the 480Mb/s you might expect. (I have this from a guy who writes USB stacks for a living.) I'd suggest you borrow a drive and measure to see if you get a noticeable improvement.

USB磁盘协议具有糟糕的性能。我有一个3.5英寸的SATA磁盘,通过我的机箱安装时,我的读取速度为80MB / s。在外部USB机箱中,同一磁盘可以提供大约30MB / s的速度。限制因素是协议,它只能提供您预期的480Mb / s的一半。 (我从一个以USB堆栈为生的人那里得到这个。)我建议你借一个驱动器并测量一下,看看你是否有明显的改进。

#2


If you are using Windows Vista, you could try using ReadyBoost with a USB flash drive to see if it improves your VisualStudio performance.

如果您使用的是Windows Vista,则可以尝试将ReadyBoost与USB闪存驱动器配合使用,以确定它是否可以提高VisualStudio的性能。

#3


A laptop hard drive replacement is cheap & quick, and with Windows Home Server you can restore a backup to the new drive.

笔记本电脑硬盘更换既便宜又快捷,使用Windows Home Server,您可以将备份恢复到新驱动器。

Even if this is for work, I still think it's worth spending my own money to improve my productivity, if my employer won't pay for it. (Or find an employer who will!)

即使这是为了工作,我仍然认为如果我的雇主不支付费用,我自己花钱来提高生产力是值得的。 (或者找一个愿意的雇主!)

Max out your RAM. This will alleviate some of the load on the hard drive.

最大化你的RAM。这将减轻硬盘驱动器上的一些负载。

Once you have lots of RAM, experiment with disabling virtual memory (aka swap space / aka page file). For certain usage patterns, this can be much faster. For others, it can be slower. For still others, it will crash. Hence, experiment (and save often).

一旦你有大量的RAM,试验禁用虚拟内存(即交换空间/ aka页面文件)。对于某些使用模式,这可以更快。对于其他人来说,它可能会更慢。对于其他人来说,它会崩溃。因此,实验(并经常保存)。

#4


From some quick data I found it doesn't look like you'll be any better off with a usb 2.0 drive over the internal 5400 rpm hard drive.

从一些快速数据我发现,看起来你的内置5400转硬盘上的usb 2.0驱动器会更好。

internal hard drive performance

内部硬盘性能

usb 2.0 performance

usb 2.0性能

however, I think one of the faster firewire drives could help out a bit.

但是,我认为其中一个更快的火线驱动器可能会有所帮助。

#5


Do not have a chance to use 1394 disk, but I know USB external disk is slower than internal disk.

没有机会使用1394磁盘,但我知道USB外部磁盘比内部磁盘慢。

For large file copy, USB disk typically has a around 20MB/s performance and should be worse to handle small files (most files in a vs.net project are small).

对于大型文件复制,USB磁盘通常具有大约20MB / s的性能,并且应该更糟糕地处理小文件(vs.net项目中的大多数文件都很小)。

#6


I certinly get better performance when burning files to DVD from my external 7200rpm usb 2 drive over my internal 5400rpm drive

通过我的内部5400rpm驱动器从外部7200rpm usb 2驱动器将文件刻录到DVD时,我可以获得更好的性能

#7


A USB drive won't help you since it's slower then an internal drive. If your laptop has an E-Sata port this drive may be useful though. http://www.ocztechnology.com/products/flash_drives/ocz_throttle_esata_flash_drive

USB驱动器无法帮助您,因为它比内置驱动器慢。如果您的笔记本电脑有一个E-Sata端口,这个驱动器可能会很有用。 http://www.ocztechnology.com/products/flash_drives/ocz_throttle_esata_flash_drive

#8


You might be better off with the internal drive. If you have enough computer memory, the hard drive accesses might be cached in physical memory as opposed to hard disk space.

使用内置驱动器可能会更好。如果您有足够的计算机内存,硬盘驱动器访问可能会缓存在物理内存中,而不是硬盘空间。

It may be possible to prevent windows for writing back to the disk to frequently if a file changes, but this might not be safe on a laptop.

如果文件发生更改,可能会阻止窗口频繁写回磁盘,但这在笔记本电脑上可能不安全。

If you have parallel build capability, setting the number of parallel processes to 1 + the number of cpu cores will allow the cpu's to be utilized (compiling) while another file is being loaded.

如果您具有并行构建功能,则将并行进程数设置为1 + cpu核心数将允许在加载另一个文件时使用(编译)cpu。

#9


Have you actually checked the prices of 7200RPM laptop drives lately? 160GB, 7200RPM for $60 @ NewEgg.com

你有没有最近检查过7200RPM笔记本电脑驱动器的价格? NewEgg.com售价160GB,7200RPM,现价$ 60

#1


The USB disk protocols have terrible performance. I have a 3.5-inch SATA disk that gives me 80MB/s read speeds when mounted through my case. The same disk gives me about 30MB/s when in an external USB enclosure. The limiting factor is the protocol, which can deliver only about half the 480Mb/s you might expect. (I have this from a guy who writes USB stacks for a living.) I'd suggest you borrow a drive and measure to see if you get a noticeable improvement.

USB磁盘协议具有糟糕的性能。我有一个3.5英寸的SATA磁盘,通过我的机箱安装时,我的读取速度为80MB / s。在外部USB机箱中,同一磁盘可以提供大约30MB / s的速度。限制因素是协议,它只能提供您预期的480Mb / s的一半。 (我从一个以USB堆栈为生的人那里得到这个。)我建议你借一个驱动器并测量一下,看看你是否有明显的改进。

#2


If you are using Windows Vista, you could try using ReadyBoost with a USB flash drive to see if it improves your VisualStudio performance.

如果您使用的是Windows Vista,则可以尝试将ReadyBoost与USB闪存驱动器配合使用,以确定它是否可以提高VisualStudio的性能。

#3


A laptop hard drive replacement is cheap & quick, and with Windows Home Server you can restore a backup to the new drive.

笔记本电脑硬盘更换既便宜又快捷,使用Windows Home Server,您可以将备份恢复到新驱动器。

Even if this is for work, I still think it's worth spending my own money to improve my productivity, if my employer won't pay for it. (Or find an employer who will!)

即使这是为了工作,我仍然认为如果我的雇主不支付费用,我自己花钱来提高生产力是值得的。 (或者找一个愿意的雇主!)

Max out your RAM. This will alleviate some of the load on the hard drive.

最大化你的RAM。这将减轻硬盘驱动器上的一些负载。

Once you have lots of RAM, experiment with disabling virtual memory (aka swap space / aka page file). For certain usage patterns, this can be much faster. For others, it can be slower. For still others, it will crash. Hence, experiment (and save often).

一旦你有大量的RAM,试验禁用虚拟内存(即交换空间/ aka页面文件)。对于某些使用模式,这可以更快。对于其他人来说,它可能会更慢。对于其他人来说,它会崩溃。因此,实验(并经常保存)。

#4


From some quick data I found it doesn't look like you'll be any better off with a usb 2.0 drive over the internal 5400 rpm hard drive.

从一些快速数据我发现,看起来你的内置5400转硬盘上的usb 2.0驱动器会更好。

internal hard drive performance

内部硬盘性能

usb 2.0 performance

usb 2.0性能

however, I think one of the faster firewire drives could help out a bit.

但是,我认为其中一个更快的火线驱动器可能会有所帮助。

#5


Do not have a chance to use 1394 disk, but I know USB external disk is slower than internal disk.

没有机会使用1394磁盘,但我知道USB外部磁盘比内部磁盘慢。

For large file copy, USB disk typically has a around 20MB/s performance and should be worse to handle small files (most files in a vs.net project are small).

对于大型文件复制,USB磁盘通常具有大约20MB / s的性能,并且应该更糟糕地处理小文件(vs.net项目中的大多数文件都很小)。

#6


I certinly get better performance when burning files to DVD from my external 7200rpm usb 2 drive over my internal 5400rpm drive

通过我的内部5400rpm驱动器从外部7200rpm usb 2驱动器将文件刻录到DVD时,我可以获得更好的性能

#7


A USB drive won't help you since it's slower then an internal drive. If your laptop has an E-Sata port this drive may be useful though. http://www.ocztechnology.com/products/flash_drives/ocz_throttle_esata_flash_drive

USB驱动器无法帮助您,因为它比内置驱动器慢。如果您的笔记本电脑有一个E-Sata端口,这个驱动器可能会很有用。 http://www.ocztechnology.com/products/flash_drives/ocz_throttle_esata_flash_drive

#8


You might be better off with the internal drive. If you have enough computer memory, the hard drive accesses might be cached in physical memory as opposed to hard disk space.

使用内置驱动器可能会更好。如果您有足够的计算机内存,硬盘驱动器访问可能会缓存在物理内存中,而不是硬盘空间。

It may be possible to prevent windows for writing back to the disk to frequently if a file changes, but this might not be safe on a laptop.

如果文件发生更改,可能会阻止窗口频繁写回磁盘,但这在笔记本电脑上可能不安全。

If you have parallel build capability, setting the number of parallel processes to 1 + the number of cpu cores will allow the cpu's to be utilized (compiling) while another file is being loaded.

如果您具有并行构建功能,则将并行进程数设置为1 + cpu核心数将允许在加载另一个文件时使用(编译)cpu。

#9


Have you actually checked the prices of 7200RPM laptop drives lately? 160GB, 7200RPM for $60 @ NewEgg.com

你有没有最近检查过7200RPM笔记本电脑驱动器的价格? NewEgg.com售价160GB,7200RPM,现价$ 60