VS 2008 slow at editing large source files

  • Thread starter Thread starter Euan
  • Start date Start date
E

Euan

Hi,

I'm being driven mad working on a solution that contains some C#
source files which are up to 7000 lines long and are incredible slow
to edit in VS2008. Does anyone else have this problem? I can't find
any reference to it on the web.

Thanks for any help
 
I've not had such large files. A solution might be putting methods (or even
class fields) for the same class in different source files via the "partial
class" feature. (Of course if you have two classes in the same source file
you can split the file on the class boundaries too).
 
Are you running Resharper or some other plugin? 7000 lines is too long
for Resharper. Also, what is the longest line in the file? If you get
a line longer than a few thousand characters, you're pushing your luck.
 
Are you running Resharper or some other plugin? 7000 lines is too long
for Resharper. Also, what is the longest line in the file? If you get
a line longer than a few thousand characters, you're pushing your luck.

Thanks for your comments. I have considered partial files but it
seems like a bit of a hack, but maybe not so bad. Most of our files
are only a few hundred lines but a couple represent massive classes.
There are no particuarly long lines and we're not using anything like
resharper (you can barely compile the solution with resharper loaded,
it's just too big. All our machines have 4GB, think we need x64). I
think the problem is VS continually compiling the file to give
warnings/errors but I don't seem to be able to stop it
 
Back
Top