473,725 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does it take so long?

I apparently posted this in a wrong group ... one intended for pre-.Net
development using VB. Anyway...

I have a solution containing a project of Web pages, a project that contains
all my business objects, five Web Service projects and three Windows Services
projects. I'm only working with a relatively small portion of the code ...
primarily the business objects, Web pages and one of the Web Services ... but
I need to make sure that any additions/changes don't negatively affect the
balance of the solution. My problem is it takes upwards of seven minutes
(yep, seven minutes) to load the solution when I start my day; it also seems
like it takes forever for the program to actually render the first Web page
with or without debugging and the same holds true from when I want to stop
debugging.

Why is it taking so freakin', bloody long to load or run/stop running? What
can I do to resolve this issue?

Thanks!

Dec 19 '07 #1
1 2909
I am not sure. Here are some general guidelines:

1. Get a faster hard drive. The 5400 RPM drives are a bottleneck for
development and loading. This is often overlooked.
2. More memory - of course, if you are already maxed out, this is not
something you can do. Be smart about it by examining your memory.
3. Faster memory - The architecture has to support it, of course, but many
manufacturers start you with cheaper, slower speed, memory. Go as fast as
the FSB can handle.
4. TSRs - some virus protection programs examine everything you load. If you
can make an exception of your code files, this may speed up initial load.
5. Visual Studio plug ins - Some plug-ins, like Resharper, examine the
project every time you load, causing a slow down
6. Deletion of temp files, including temp internet files - this is a good
thing to do every once in awhile, as Windows itself can bog down if you do
not, and this bogging can show in a variety of ways
7. Defrag the drive - This is esp. helpful in large solutions

As for projects, I will generally use nUnit or mbUnit for my unit testing. I
add on a mock framework and test everything in isolation.

For solution wide testing, I find it better to set up a solution at each
project level, as well as one "big bang" solution. I general will use the
isolated solutions, so I am working with compiled code at the lower levels.
This is not always possible, but working with compiled code will speed up
the load of my UI tremendously.

In addition, I have found that some bad coding practices (esp. too much code
in the ASP.NET app) will bog down VS 2005 tremendously. I have since
refactored some troubled projects and they load much faster.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"AlBruAn" <al*****@hotmai l.com.(donotspa m)wrote in message
news:72******** *************** ***********@mic rosoft.com...
>I apparently posted this in a wrong group ... one intended for pre-.Net
development using VB. Anyway...

I have a solution containing a project of Web pages, a project that
contains
all my business objects, five Web Service projects and three Windows
Services
projects. I'm only working with a relatively small portion of the code
...
primarily the business objects, Web pages and one of the Web Services ...
but
I need to make sure that any additions/changes don't negatively affect the
balance of the solution. My problem is it takes upwards of seven minutes
(yep, seven minutes) to load the solution when I start my day; it also
seems
like it takes forever for the program to actually render the first Web
page
with or without debugging and the same holds true from when I want to stop
debugging.

Why is it taking so freakin', bloody long to load or run/stop running?
What
can I do to resolve this issue?

Thanks!

Dec 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2075
by: Brian Henry | last post by:
I purchased a copy of VS.NET 2003 professional and installed it on a computer to test it and forgot about activation, i want to move it to the real computer, but of course its activated on the other one. How long does it take before the activation wears out? I know that windows activation runs out after 180 days and then you can reinstll it on another one (yes i also know about calling microsoft) but i am interested in how many days it...
8
5333
by: Trishia Rose | last post by:
this is something ive always wondered, does it take cpu time at run time to typecast or just at compile time? for example consider the two little bits of code: int a = 5; int b = a; and: char *a = (char*) 5;
35
5459
by: Sunil | last post by:
Hi all, I am using gcc compiler in linux.I compiled a small program int main() { printf("char : %d\n",sizeof(char)); printf("unsigned char : %d\n",sizeof(unsigned char)); printf("short : %d\n",sizeof(short)); printf("unsigned short : %d\n",sizeof(unsigned short)); printf("int : %d\n",sizeof(int));
58
30235
by: Larry David | last post by:
Ok, first of all, let's get the obvious stuff out of the way. I'm an idiot. So please indulge me for a moment. Consider it an act of "community service".... What does "64bit" mean to your friendly neighborhood C# programmer? The standard answer I get from computer sales people is: "It means that the CPU can process 64 bits of data at a time instead of 32." Ok... I guess I *kind* of understand what that means at an intuitive level, but what...
3
2919
by: Franz | last post by:
Hi, If my ProjectTable contains a lot of rows, each time I call the following code, will all the rows be fetched? Or only those 5 records for that page are fetched only? /* -- code start -- */ OdbcConnection connection = new OdbcConnection("DSN=Whatever"); connection.Open(); string query = "SELECT * FROM ProjectTable";
14
4855
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
89
6051
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be used." Could anybody tell me why gets() function is dangerous?? Thank you very much. Cuthbert
2
2892
by: Jim Carr | last post by:
Upon entering the site www.FutureByDesign-Music.com with IE6, my clipboard is erased and then disabled in all other Windows XP applications. Navigating to another site returns clipboard functionality, but whatever was on the clipboard before is lost. If I disable running JavaScript on the page, the clipboard is unaffected. Viewing the page in Firefox does not have this issue. I think it might be the script below, which makes no sense...
130
6588
by: Daniel Manes | last post by:
I'm baffled. I have a column in a SQL Server Express database called "Longitude," which is a float. When I view the table in a DataGridView, some of the numbers, which only have two decimal places in the database show up with *15* decimal places and are ever so slightly off (in the example in the subject line, by about 2E-15). I'm not doing any operations on this column. It's just running a stored procedure which performs a pretty basic...
92
6215
by: Heinrich Pumpernickel | last post by:
what does this warning mean ? #include <stdio.h> int main() { long l = 100; printf("l is %li\n", l * 10L);
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9116
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8099
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.