Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

can't you split your project in smaller pices? e.g. one file per Class-Definition or Namespace?

 

could make the files smaller...

 

Andreas

 

btw. what Hardware are you using (too slow CPU or too small RAM)? are there many other programs or multiple instances of VS.NET running when those problems occur?

Posted
i have a file with 26500 lines of code !!! and never had this kind of problem.....it may be your system configuration thats responsible(especialy RAM an Processor)
Posted

one thing that also might help is using the nice VS.NET feature called "Regions" (and I'm not talking of the System.Drawing.Region)...

 

put code of long classes/methods/functions/properties in these tags:

 

#region Type your description here

// code here....

#endregion

 

this way you can collapse parts of your code which might decrease textrendering work for your computer thus increase speed of VS.NET...

 

if this still doesn't help I guess vorgo is right or you'd better check how many other programs are running while using VS.NET... ;)

 

Andreas

  • 1 month later...
Posted

I have the same experience, the large amount of Form's objects means a lots of code and it causes the editor becomes useless.

And doesn't matter if the code is hidden in the collapsed region or isn't.

(Celeron 800, 512MB RAM...)

The only one solution I have found is moving the

"#region Windows Form Designer generated code" (it's the region that hides the "InitializeComponent" method) to the end of the source code file. Editing of any part of the code above this huge method is then much faster.

  • 2 weeks later...
Posted

If you open Windows Task Manager you'll see that the "devenv.exe" process is taking you 35Mb minimum amount of memory...

Considering that the IDE have some memory leaks, after working on your project a few hours, it will increase considerably... to about 60Mb...

Tops, I've seen some of my projects using 130Mb of my RAM resources...

 

Assuming that you have the Windows 2000 OS installed, the minimum amount recomended for that OS its exactly 128Mb!

 

I think you've already reached the point here... if when you compile, the OS its already using the HD to supply the necessary RAM space it will be about 10+ times slower...

 

Currently I've 2 computers to work on...

A Laptop P4 2,66Ghz with 512Mb DDR266, and a Desktop P4 2,5Ghz with 1024Mb DDR333... everything work smoothly...

 

As we speak of resources, consider buyng allways the fastest HD system you can achieve.

There're already some 60Gb HD at 72000 rpm for laptops and for desktops consider a RAID 0 implementation with at least 2 SATA HD's...

Performance really matters...

 

Alex :D

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...