慢"查找所有引用"在Visual Studio中 [英] Slow "Find All References" in Visual Studio

查看:622
本文介绍了慢"查找所有引用"在Visual Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与解决方案,包含6库项目和1个Web文件夹的项目。

I have a VS solution that contains 6 library projects and 1 web folder project.

当我尝试使用查找所有引用功能的对象或方法上,它需要超过6分钟才能完成!

When I try to use the "Find All References" feature on an object or method, it takes more than 6 minutes to finish !

这似乎是每一个重构的 ASPX &安培; ASCX Web项目的文件。

It seems to be refactoring every aspx & ascx file of the web project.

如何使其更快任何想法?

Any idea on how to make it faster ?

推荐答案

您没有提到正在运行的的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

这篇关于慢"查找所有引用"在Visual Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆