I have the same situation. We have over 100 table definitions in a dataset. When using WinXP, 5 out of 9 times the VS will crash during save due to OutOfMemoryException. The updated OS for Windows 7 (32) seems to speed up the designerβs savings and productivity. However, it still sometimes raises an OutOfMemoryException in Visual Studio during save. Usually I finish restarting VS, open only the dataset constructor, and then save the dataset.
I have a Duo Core with 4 GB of RAM. Saving a dataset takes 1 to 2 minutes. Not as slow as 10-15 minutes, but it is still slow. During the save, the designer regenerates the dataset.design.cs file. My designer file is about 9 MB. You may want to check the size of your designer and measuring instruments file if your VS saves this for a long time.
My suggestions: 1. If you have ReSharper installed, try disabling it if ReSharper analyzes the created constructor file. 2. Delete the created constructor file and see if the generation of the new one is faster. 3. Not sure if that matters. Check how complex your definition table is. This may be possible if you have some kind of pivot table relationship that slows down the creation of a designer file.
source share