gpt4 book ai didi

asp.net - Visual Studio 中的慢 "Find All References"

转载 作者:行者123 更新时间:2023-12-04 14:01:21 28 4
gpt4 key购买 nike

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

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

它似乎在重构 Web 项目的每个 aspxascx 文件。

关于如何让它更快的任何想法?

最佳答案

你没有提到你运行的是哪个版本的 Visual Studio,但我发现了一个宣传语,声称他们在 2005 和 2005SP1 之间做了一些性能改进

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.

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 也提供了这个解决方法:

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

关于asp.net - Visual Studio 中的慢 "Find All References",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/428436/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com