vs2010 + ReSharper6 = 慢 Javascript。为什么?
打开包含 250 多行 JS 代码和许多注释的 .aspx 文件几分钟后发生。当我编辑 JS 时 - 一个核心加载 100%,性能就像每秒 1 个字母。当我重新打开文件时 - 它开始在一段时间内表现良好,但最近再次变慢......如何修复它?
环境:vs2010+sp1 附加软件 - Resharper6(与第 5 版面临同样的问题)
硬件:C2Q9550 + 8Gb RAM
Happens few minutes after opening a .aspx file with 250+ lines of JS code with many comments. When I'm editing JS - One core become 100% loaded and performance is like 1 letter per second. When i'm reopening the file - it starts to perform well for some time, but slows down again recently... How to fix it?
Environment: vs2010 + sp1
Additional software - Resharper6 (faced same issue with 5th version)
Hardware: C2Q9550 + 8Gb RAM
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ReSharper 拥有大量针对 Javascript 的功能/改进代码。我猜有些改进...不是最理想的。当您键入时,它会在后台进行大量解析和检查,这可能会占用合理的 CPU 时间。
您可能还会发现您的计算机不够强大,无法运行较新的版本 - 我正在运行 v6 的 beta 版本之一,但由于性能问题而不得不卸载它,而且这是在多核计算机上。显然不同的人会有不同的体验,但就我个人而言,我不会在较低规格的机器上运行它。
ReSharper has a bunch of features / improvements for Javascript code. I guess some of the improvements were... suboptimal. It will be doing a lot of parsing and checking in the background while you type, that can take a reasonable amount of CPU time.
You may also find that your machine is just not powerful enough to run the newer version - i was running one of the beta builds of v6 but had to uninstall it due to performance issues, and that is on a multicore machine. Obviously different people will have different experiences, but personally i would not run it on a lower spec machine.