Visual Studio 数据集设计器保存速度非常慢

发布于 2024-09-16 05:56:36 字数 195 浏览 3 评论 0原文

使用 Visual Studio 2008 数据集设计器工作已成为一种痛苦。我有一个相当大的数据集(> 50 个表),并且保存更改需要很多时间(我在这里谈论的是大约 10-15 分钟!)。这不可能是硬件问题,因为我有 Intel i7、8 GB RAM 和 7200rpm HDD。有人有想法吗? (这个“错误”发生在每台使用此数据集的电脑上)。

谢谢!

workig with Visual Studio 2008 DataSet Designer has become a pain in the a*s. I have a quite big dataset (>50 Tables) and saving chages takes A LOT of time (I am talking here about 10-15 minutes!). It cannot be a hardware issue since I have an Intel i7, 8 GB RAM and 7200rpm HDD. Has anyone an idea? (This "bug" occurs on every PC working with this dataset).

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

暗藏城府 2024-09-23 05:56:36

尝试另一个问题中找到的解决方案。

转到工具->选项-> Windows 窗体设计器 并将 AutoToolboxPopulate 设置为 false。

这对我有用。

Try the solution found in another question.

Go to the Tools -> Options -> Windows Form Designer and set the AutoToolboxPopulate to false.

It works for me.

念﹏祤嫣 2024-09-23 05:56:36

我也有类似的情况。数据集中有 100 多个表定义。使用WinXP时,9次中有5次VS会在保存过程中因OutOfMemoryException而崩溃。将操作系统更新为 Windows 7 (32) 似乎加快了保存速度和设计人员的性能。但是,在保存过程中,它仍然偶尔会在 Visual Studio 中导致 OutOfMemoryException。我通常会重新启动 VS,仅打开数据集设计器,然后保存数据集。

我有一个双核处理器,内存为 4 GB。保存数据集大约需要 1 到 2 分钟。虽然没有10到15分钟那么慢,但还是很慢。在保存过程中,设计器重新生成 dataset.design.cs 文件。我的设计器文件大约有 9 MB。如果您的 VS 保存了很长时间,您可能需要检查设计器文件和仪表的大小。

我的建议是:
1. 如果您安装了 ReSharper,请尝试禁用它,以防 ReSharper 分析生成的设计器文件。
2.删除生成的设计器文件,看看生成新的设计器文件是否更快。
3. 不确定这是否重要。检查您的表定义有多复杂。如果您有某种会减慢设计器文件生成速度的圆表关系,则可能会出现这种情况。

I have a similar situation. We have over 100 table definitions in the dataset. When using WinXP, 5 out of 9 times VS would crash during saving due to OutOfMemoryException. Updated the OS to Windows 7 (32) seems to speed up the saving and the designer performance. However it still occasionally cause OutOfMemoryException in Visual Studio during saving. I usually end up restarting VS, open just the dataset designer, and then save the dataset.

I have a Duo Core with 4 GB of ram. It takes about 1 to 2 minutes to save the Dataset. Not as slow as 10 to 15 min, but it is still slow. During the saving, the designer regenerate the dataset.design.cs file. My designer file is about 9 MB. You may want to check the size of your designer file and gauges if your VS saving that a long time.

My suggestions are:
1. If you have ReSharper installed, try disable it in case ReSharper analysis the generated designer file.
2. Delete the generated designer file, and see if generating a new one is faster.
3. Not sure if it matters. Check how complicated your table definition is. It may be possible if you have some kind of circular table relationships that slow down the designer file generation.

初心未许 2024-09-23 05:56:36

我知道这是一个迟到的答案,但希望它能对其他人有所帮助。与设计器一起工作时,它的工作速度最快,除了设计器之外没有其他选项卡打开。如果您与设计器一起打开 .cs 文件,那么即使是简单的操作(例如重命名标签)也将花费更长的时间。

我感受到你的痛苦,因为我正在开发一个包含 100 多个数据集的项目,并且我遇到了完全相同的问题。

I know this is a late answer, but hopefully it will help someone else down the line. When working with the designer it works fastest with no other tabs open except the designer. If you have the .cs file open along with the designer it will take A LOT longer to do even simple operations such as renaming a label.

I feel your pain as I'm working on a project with 100+ DataSets and I have the exact same issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文