Slow performance on strongly typed dataset

Hi - I am using VS2005 and R# 2.0 (official release version).

I am using a strongly typed dataset generated from my database by VS2005.

The Designer.cs file is big - around 11.000 lines.

When I press Ctrl+B to see the definition for some of the auto-generated
code the Designer file is immediately thrown into the editor with the method
I am interested in at the bottom of the editor. At that point the editor
locks for 15-20 seconds before the editor re-activates and positions the
method I am interested on the middle of the screen. At this point code-analysis
kicks - in a background thread - and after another 15 seconds begins displaying
LOTS of warnings.

The most annoying thing is the first 15-20 second delay where the editor
is locked.

The second annoying thing is the zillions of warnings. Since this is a designer
generated file it would be nice if warnings could be suppressed. I do not
know if it is possible to have the warnings turned of for specific files.
I would still like to have errors displayed though.

Cheers
Thomas


4 comments
Comment actions Permalink

I forgot to say that my machine is a 1.6 GHz centrino labtop with 1.5 GB
of RAM.

Hi - I am using VS2005 and R# 2.0 (official release version).

I am using a strongly typed dataset generated from my database by
VS2005.

The Designer.cs file is big - around 11.000 lines.

When I press Ctrl+B to see the definition for some of the
auto-generated code the Designer file is immediately thrown into the
editor with the method I am interested in at the bottom of the editor.
At that point the editor locks for 15-20 seconds before the editor
re-activates and positions the method I am interested on the middle of
the screen. At this point code-analysis kicks - in a background thread
- and after another 15 seconds begins displaying LOTS of warnings.

The most annoying thing is the first 15-20 second delay where the
editor is locked.

The second annoying thing is the zillions of warnings. Since this is a
designer generated file it would be nice if warnings could be
suppressed. I do not know if it is possible to have the warnings
turned of for specific files. I would still like to have errors
displayed though.

Cheers
Thomas



0
Comment actions Permalink

Exactly one of the reasons I don't like typed datasets, incredible code
bloat. I mean c'mon a class with around 11.000 lines, seriously if you
really take a minute and think about it...

--
Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net

"Thomas Koch" <thomask_ts@yahoo.dk> wrote in message
news:afdf35267e528c858f99d31b39f@news.jetbrains.com...

Hi - I am using VS2005 and R# 2.0 (official release version).

>

I am using a strongly typed dataset generated from my database by VS2005.

>

The Designer.cs file is big - around 11.000 lines.

>

When I press Ctrl+B to see the definition for some of the auto-generated
code the Designer file is immediately thrown into the editor with the
method I am interested in at the bottom of the editor. At that point the
editor locks for 15-20 seconds before the editor re-activates and
positions the method I am interested on the middle of the screen. At this
point code-analysis kicks - in a background thread - and after another 15
seconds begins displaying LOTS of warnings.

>

The most annoying thing is the first 15-20 second delay where the editor
is locked.

>

The second annoying thing is the zillions of warnings. Since this is a
designer generated file it would be nice if warnings could be suppressed.
I do not know if it is possible to have the warnings turned of for
specific files. I would still like to have errors displayed though.

>

Cheers
Thomas

>



0
Comment actions Permalink

I see much the same behavior when attempting to find declaration that
directs me to a large (10,000+ lines) code file. Usually the find
declaration is fairly quick and shows the declaration at the bottom of the
screen. I then have to wait 15 to 20 seconds for ReSharper to reposition the
text to show the declaration in the center of the screen and Visual Studio
is frozen during this time with CPU usage peaked at 100% on one CPU. I'm
using an Intel CoreDuo 1.83GHz with 2GB RAM so I usually check email or such
while I'm waiting.

--


"Thomas Koch" <thomask_ts@yahoo.dk> wrote in message
news:afdf35267e528c858f99d31b39f@news.jetbrains.com...

Hi - I am using VS2005 and R# 2.0 (official release version).

>

I am using a strongly typed dataset generated from my database by VS2005.

>

The Designer.cs file is big - around 11.000 lines.

>

When I press Ctrl+B to see the definition for some of the auto-generated
code the Designer file is immediately thrown into the editor with the
method I am interested in at the bottom of the editor. At that point the
editor locks for 15-20 seconds before the editor re-activates and
positions the method I am interested on the middle of the screen. At this
point code-analysis kicks - in a background thread - and after another 15
seconds begins displaying LOTS of warnings.

>

The most annoying thing is the first 15-20 second delay where the editor
is locked.

>

The second annoying thing is the zillions of warnings. Since this is a
designer generated file it would be nice if warnings could be suppressed.
I do not know if it is possible to have the warnings turned of for
specific files. I would still like to have errors displayed though.

>

Cheers
Thomas

>



0
Comment actions Permalink

I respectfully disagree. :)

I find it very useful to have this kind of error-prone plumbing code auto-generated.
Lets me concentrate on the (other) interesting parts of the project. The
11000 lines of code is actually several classes in one code file.

Its only that it would be nice if R# were capable of recognizing the code
as being auto-generated and as a consequence reduce its level of information,
in turn improving performance.

I guess if the nice guys at Jetbrains introduced a "Create a code file pr.
class" refactoring I could just run that first before browsing the auto-generated.

Thomas

Exactly one of the reasons I don't like typed datasets, incredible
code bloat. I mean c'mon a class with around 11.000 lines, seriously
if you really take a minute and think about it...

"Thomas Koch" <thomask_ts@yahoo.dk> wrote in message
news:afdf35267e528c858f99d31b39f@news.jetbrains.com...

>> Hi - I am using VS2005 and R# 2.0 (official release version).
>>
>> I am using a strongly typed dataset generated from my database by
>> VS2005.
>>
>> The Designer.cs file is big - around 11.000 lines.
>>
>> When I press Ctrl+B to see the definition for some of the
>> auto-generated code the Designer file is immediately thrown into the
>> editor with the method I am interested in at the bottom of the
>> editor. At that point the editor locks for 15-20 seconds before the
>> editor re-activates and positions the method I am interested on the
>> middle of the screen. At this point code-analysis kicks - in a
>> background thread - and after another 15 seconds begins displaying
>> LOTS of warnings.
>>
>> The most annoying thing is the first 15-20 second delay where the
>> editor is locked.
>>
>> The second annoying thing is the zillions of warnings. Since this is
>> a designer generated file it would be nice if warnings could be
>> suppressed. I do not know if it is possible to have the warnings
>> turned of for specific files. I would still like to have errors
>> displayed though.
>>
>> Cheers
>> Thomas


0

Please sign in to leave a comment.