加速 VisualStudio 2010 和 Resharper 6.1:值得使用 RamDisk 吗?
首先,我希望在 Stackeroverflow 上创建这样的问题是可以的,如果不告诉我:)
我有 16GB DDR3 RAM,我认为通过创建 RAM 磁盘可以加快 VisualStudio 和 Resharper 的速度。
你们中有人有过这种情况的经验吗或者可以给我一些建议吗?
我的想法是将 Visual studio、Resharper 和解决方案文件安装/复制到 RAM 磁盘。
At first I hope creating such a question on Stackeroverflow is ok, if not tell me :)
I have 16GB of DDR3 RAM and I think it could be possible to speed up VisualStudio and Resharper by creating a RAM Disk.
Does anyone of you have made experience with such a scenario or can you give me some tips?
My idea is to install/copy Visual studio, Resharper and solution files to the RAM Disk.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我假设“将 VS 安装到 RAM 磁盘上”是指您将使用 NTFS 将预期的 Program Files\Microsoft Visual Studio 文件夹映射到 RAM 上?我问的原因是,据我所知,您被迫将大部分 VS 安装到系统驱动器上,并且您无法覆盖它。
正如另一位评论者所说,首先获得 SSD。获取那些昂贵的 PCI 驱动的(例如 OCS IBIS)。看看性能。 然后决定您是否真的需要内存。如果您决定这样做,请尝试仅将 TMP/TEMP 文件夹映射到 RAM,然后用它启动 VS 并查看它是如何工作的。我的猜测是,您将获得适度的改进,但没有什么值得大书特书的,除非您使用的是 5200RPM 磁盘(即使如此......)
I assume that by "installing VS onto RAM Disk" you mean that you'll use NTFS to map the expected
Program Files\Microsoft Visual Studio
folder onto RAM? The reason I'm asking is that AFAIK you're forced to install the bulk of VS onto your system drive, and you cannot override that.As the other commenter said, get an SSD first. Get those expensive PCI-driven ones (such as OCS IBIS). Take a look at performance. Then decide if you really need RAM. And if you decide that you do, try mapping just the TMP/TEMP folders onto RAM and then starting up VS with that and seeing how it works. My guess is, you'll get a modest improvement, but nothing to write home about, unless you're using a 5200RPM disk (and even then...)
我已经尝试过这种情况,但它并没有带来很大的改进,问题出在“C:\Windows\ assembly”文件夹中,该文件夹大约有3Gb,因为该文件夹包含所有.NET程序集,VS在启动/关闭时经常访问它,我不知道它是否可以链接到另一个文件夹。
就我而言,我有一个很大的解决方案,并且在 HDD 上进行编译需要很多时间。因此,我仅将源代码转移到 RAMDisk,并且编译时间得到了显着改善。
为了加快VS速度,只需购买SSD即可。 Resharper 使用默认位于解决方案文件夹中的缓存文件夹,并且在 RAMDisk 中拥有解决方案可以加快速度,或者您可以仅将缓存文件夹配置在 RAMDisk 中。
I have tried this scenario, and it does not bring big improvements, the problem is in "C:\Windows\assembly" folder which has around 3Gb as this folder contains all .NET assemblies it is accessed often by VS on start/close, I don't know if it can be linked to another folder.
In my case I have a big solution and compiling on HDD it takes to much time. So I moved to RAMDisk only the source code and compile time was improved dramatically.
To speed up VS just buy an SSD. Resharper is using the cache folder which by default is in the solution foder, and having solution in RAMDisk is speeding it up, or you can configure only the cache folder to be in RAMDisk.
根据我的经验,RamDisk 的构建速度比 SSD 慢。它甚至可能比 HDD 慢... RAMdisk 比磁盘慢?
所以不必担心RamDisk 并购买 Intel 或 Crucial SSD,但不要购买 OCZ。
编辑:
经过多次尝试我想通了。当 ramdisk 格式化为 FAT32 时,即使基准测试显示较高的值,但实际使用速度实际上比 NTFS 格式的 SSD 慢。但在现实生活中,NTFS 格式的 ramdisk 比 SSD 更快。
in my experience RamDisk is slower than SSD for build. it can be even slower than HDD... RAMdisk slower than disk?
so do not bother with RamDisk and buy Intel or Crucial SSD, but not OCZ.
EDIT:
After many tries I figured it out. When ramdisk is formatted as FAT32, then even though benchmarks shows high values, real world use is actually slower than NTFS formatted SSD. But NTFS formatted ramdisk is faster in real life than SSD.