且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

慢"查找所有引用"在Visual Studio中

更新时间:2023-02-27 10:27:46

您没有提到正在运行的的Visual Studio版本,但我发现,声称他们没有2005年和2005SP1之间的一些性能改进它们做广告

You didn't mention which version of Visual Studio you are running, but I found a blurb that claims they did some performance improvements between 2005 and 2005SP1

我们做的VS2005 SP1的变化
  (并包括它在VS 2008中),这
  优化了Web项目业绩
  通过首先执行词法搜索
  该元件被重构为
  确定该页面必须
  加载。我为它带我们道歉
  这么长时间来更新与此问题
  解析度;有几个连接
  这是相关的,而我们的bug
  更新最让我们设法错过一些。

We made a change in the VS2005 SP1 (and included it in VS 2008) which optimizes performance in web projects by first performing a lexical search of the element being refactored to determine if the page needs to be loaded. I apologize for it taking us so long to update this issue with the resolution; there were several connect bugs that were related and while we updated most we managed to miss some.

我们预计,在未来,我们会做
  更高的性能增强功能
  这种情况下(后VS 2008),但
  希望的优化,我们有
  做了大幅提高性能
  在大多数情况下

We expect that in the future we'll do even more performance enhancements for this scenario (post VS 2008), but hopefully the optimizations we have done drastically increase performance in most cases.

此外,该解决方案有点太烂了,但MS也提出了这样的解决方法:

Also, this solution kinda sucks, but MS offered this workaround too:

对于变通方法可以
  提高性能相当
  显著如果你打开​​所有的
  网页执行之前,
  重构。我同意这是不是一个
  特别好的解决办法,但对于
  VS 2005,我们选择了prioritze
  在正确性性能
  重构。

With respect to workarounds you can increase the performance fairly significantly if you open all of the web pages prior to performing the refactoring. I agree that it isn't a particularly good workaround, but for VS 2005 we chose to prioritze correctness over performance for refactoring.

来源:https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=92239

Source: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=92239