的Visual Studio 2012 WinForm设计很慢 [英] Visual Studio 2012 winform designer is VERY slow

查看:444
本文介绍了的Visual Studio 2012 WinForm设计很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我们移植我们的WinForms的一个项目到Visual Studio 2012的Visual Studio 2008中的过渡又非常顺利,一切都建立得很好,但是我们现在用的WinForms设计师,这是运行慢得令人难以置信挣扎

We've recently migrated one of our Winforms projects to Visual Studio 2012 from Visual Studio 2008. The transition has went remarkably smoothly and everything builds just fine, however we're now struggling with the winforms designer, which is running incredibly slow.

要举个例子,如果我们打开一个小表格(表格包含两个文本框,一个数字上下按钮和两个按钮 - 所有的标准内置控件,没有任何第三方的),这将需要大约40-45秒2012年,但是在2008年,将在1或2秒打开。对于我们的较大的形式,这种差异更加明显。在2008年,这将需要大约7秒开启形式,但在2012年其采取的 6分钟。最糟糕的是,这是一个阻击战,VS2012几乎完全没有反应,而打开的形式。这也恰好刚刚通过单击窗体的.H,所以它不是像我们可以轻易地避免它只是坚持到code本身。

To give an example, if we open a small form (the form contains two text boxes, a numeric updown and two buttons - all standard built-in controls, nothing 3rd party), it will take approximately 40-45 seconds in 2012, however on 2008 it would open in 1 or 2 seconds. For our larger forms, this difference is much more pronounced. In 2008, it would take about 7 seconds to open the form but in 2012 its taking over 6 minutes. The worst part is that this is a blocking action, VS2012 is almost completely unresponsive while opening the forms. This also happens just by clicking on the .h of a form, so it's not like we can easily avoid it just by sticking to the code itself.

任何人都经历呢?没有人知道为什么它的发生,如果有什么可以做什么呢?

Has anyone else experienced this? Does anyone know why it's happening and if there's anything that can be done about it?

更多信息:我们的应用程序是一个C ++ / CLI WinForms应用程序。该行为被认为是对我们所有的开发机器,它运行Windows 7 64位系统中。 我的机器是酷睿i7 860 CPU与12GB的RAM(60%免费,现在当我在基准以上) - 够多了,我想。在任何情况下,我的系统绝不是运行速度慢,这仅仅是VS2012设计师。

Additional information: Our application is a C++/CLI winforms app. The behaviour is seen on all of our development machines, which run Windows 7 x64. My machine is a Core i7 860 CPU with 12Gb of RAM (over 60% free right now while I was benchmarking the above) - more than enough, I would think. In any case, my system is by no means running slow, it's just the VS2012 designer.

编辑:只是额外的澄清,我们并没有安装任何插件或类似的东西。这是一个处女VS2012安装。

Just for extra clarification, we haven't installed ANY addons or anything like that. This is a virgin VS2012 install.

EDIT2:它似乎并没有成为一个网络的事情,无论是

It doesn't seem to be a network thing, either.

推荐答案

好了,这个问题已经开了一年多了,没有人设法用具体的答案上来,为什么WinForm设计是如此缓慢

Ok, so this question has been open for over a year now and nobody has managed to come up with a concrete answer as to why the winform designer was so slow.

最近,我又回到了VS2012和更新,尽管浇在各种发行说明更新3,我没有看到任何提及这方面的性能提升,但我很高兴向大家报告,设计师是现在更多,更快

I recently went back to VS2012 and updated to Update 3. Despite pouring over various release notes, I didn't see any mention of performance increases in this area but I'm happy to report that the designer is now much, much faster.

只是浑浊一些,我的机器已经升级,因为我最初发布此海域,我现在体育运动中使用AMD FX-8350的CPU,内存和16GB固态硬盘。当我第一次拿到这台新机器,我想的第一件事就是VS2012,我发现它只是像以前一样慢。现在,它能够装载过去需要6mins +在约15秒的形式相同。这仍然是近两倍只要VS2008,但我可以忍受的,因为它是由360 +一个巨大的飞跃。我只提到这一点,因为我不能肯定是否有已被固定在设计,或者只是性能的提升的错误 - 也许利用额外的处理器内核。换句话说,你的里程可能会有所不同,但如果你还没有尝试过了,尝试安装Update 3。

Just to muddy the waters somewhat, my development machine has been upgraded since I originally posted this, I now sport an AMD FX-8350 CPU, 16GB of RAM and an SSD. When I first got this new machine, the first thing I tried was VS2012 and I found that it was just as slow as before. Now it's capable of loading the same form that used to take 6mins+ in about 15s. This is still nearly twice as long as on VS2008, but I can live with that as it's a huge leap from 360s+. I only mention this as I cannot be sure if there has been a bug fixed in the designer, or just performance improvements - perhaps making use of extra processor cores. In other words, your mileage may vary but if you haven't tried it already, try installing Update 3.

您也可以下载更新3浏览: HTTP:// WWW .microsoft.com / EN-US /下载/ details.aspx?ID = 39305

You can download Update 3 here: http://www.microsoft.com/en-us/download/details.aspx?id=39305

这篇关于的Visual Studio 2012 WinForm设计很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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