aewarnick Posted November 16, 2003 Posted November 16, 2003 I have a very long code and when the editor checks after the code is changed it takes forever!! Can I disable it? Quote C#
Moderators Robby Posted November 16, 2003 Moderators Posted November 16, 2003 What type of project, which code window?? Quote Visit...Bassic Software
aewarnick Posted November 16, 2003 Author Posted November 16, 2003 C# windows project. Class code, form code... Quote C#
Hamburger1984 Posted November 16, 2003 Posted November 16, 2003 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? Quote
aewarnick Posted November 17, 2003 Author Posted November 17, 2003 The code is 8500 lines long. For simplicity of coding is why I have not split it up. I just type a. and the whole list of everything pops up. Quote C#
vorgo Posted November 18, 2003 Posted November 18, 2003 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) Quote
Hamburger1984 Posted November 18, 2003 Posted November 18, 2003 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 Quote
aewarnick Posted November 23, 2003 Author Posted November 23, 2003 My processor is a celeron 533 mghz. Ram 128 mb. Not much compared to today's standards. I though about using regions. I guess I'll try it. Quote C#
Moderators Robby Posted November 23, 2003 Moderators Posted November 23, 2003 My laptop is 500 mhz, 128 RAM and it work just fine during coding, it is quite slow while executing a web form though. Quote Visit...Bassic Software
jso Posted December 29, 2003 Posted December 29, 2003 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. Quote
AlexCode Posted January 9, 2004 Posted January 9, 2004 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 Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.