Click here to Skip to main content
15,888,113 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: who has hand punch 3000 Code In .net 2008 ?? Pin
Dave Kreskowiak5-May-09 10:03
mveDave Kreskowiak5-May-09 10:03 
GeneralRe: who has hand punch 3000 Code In .net 2008 ?? Pin
Pete O'Hanlon5-May-09 10:07
mvePete O'Hanlon5-May-09 10:07 
GeneralRe: who has hand punch 3000 Code In .net 2008 ?? Pin
Dave Kreskowiak5-May-09 10:39
mveDave Kreskowiak5-May-09 10:39 
QuestionDetecting the creation of a dialog Pin
PHinker2-May-09 9:18
PHinker2-May-09 9:18 
AnswerRe: Detecting the creation of a dialog Pin
Dave Kreskowiak2-May-09 16:34
mveDave Kreskowiak2-May-09 16:34 
GeneralRe: Detecting the creation of a dialog Pin
PHinker2-May-09 17:09
PHinker2-May-09 17:09 
AnswerRe: Detecting the creation of a dialog Pin
mike.james17-Jul-09 22:07
mike.james17-Jul-09 22:07 
Question.NET 2.0 application cold-start time [modified] Pin
Adrian Cole30-Apr-09 12:42
Adrian Cole30-Apr-09 12:42 
Let's say I have a .NET 2.0 application that needs to load about 30 different .NET 2.0 assemblies during startup. Said application is taking about 35 seconds to cold-start and about 13 seconds to warm-start under a specific environment. I am aware that these numbers are fairly typical of .NET 2.0 applications. Our company did not develop said application, but am tasked with coming up with suggestions on how to improve the cold-start performance.

The reading I have done suggests that the difference in the two times is due to pages still being available in memory and not as many hard-faults (disk accesses) need to be performed to reload an assembly.

Things I have identified as potential solutions are:

1. Update the minimum hardware requirements (not sure what they currently are, but the tests above were done on a 1.8 GHz P4 with 512MB RAM). The cold-start time drops from 35 to 13 seconds on my development box which is a 3.0 GHz Dual Core with 2GB RAM. Warm-start time drops from 13 seconds to 3 seconds.

2. Update the application and all its assemblies to .NET 3.5. Any idea what improvement is this likely to achieve?

3. Generate native images for the assemblies. This is a trade-off between the time needed to load larger disk images and the time required to JIT-compile a CLR assembly. Is this worth pursuing further?

4. Rebase the assemblies. Using Process Explorer from SysInternals I observed that 30 assemblies were relocated by the OS Loader. Preliminary tests indicate that the performance improvement is negligible.

5. Preload the assemblies. What this would try to achieve is to mimic a warm-start, but I'm not sure how it would have to work. If I have a pre-loader application that loads the assemblies needed by the actual application, aren't different copies of the assemblies loaded by each application into its own AppDomain? How would this help improve cold-start performance unless the assemblies are put in a common place? As you can see I'm a little confused. Help?

I have gleaned most of my information online from http://msdn.microsoft.com/en-us/magazine/cc163655.aspx[^].

I look forward to hearing suggestions, ideas. Thanks.

modified on Thursday, April 30, 2009 7:41 PM

AnswerRe: .NET 2.0 application cold-start time Pin
Dave Kreskowiak30-Apr-09 14:02
mveDave Kreskowiak30-Apr-09 14:02 
QuestionProblem with setup project Pin
Narendra Reddy Vajrala30-Apr-09 0:30
Narendra Reddy Vajrala30-Apr-09 0:30 
AnswerRe: Problem with setup project Pin
led mike30-Apr-09 4:48
led mike30-Apr-09 4:48 
AnswerRe: Problem with setup project Pin
Rolando CC30-Apr-09 6:49
professionalRolando CC30-Apr-09 6:49 
QuestionProblem in updation from 2002 to 2005 Pin
002comp29-Apr-09 21:30
002comp29-Apr-09 21:30 
AnswerRe: Problem in updation from 2002 to 2005 Pin
saanj29-Apr-09 23:50
saanj29-Apr-09 23:50 
AnswerRe: Problem in updation from 2002 to 2005 Pin
Kevin McFarlane4-May-09 2:17
Kevin McFarlane4-May-09 2:17 
QuestionBizTalk Server With ISO 8583 Pin
Member 457744829-Apr-09 21:25
Member 457744829-Apr-09 21:25 
Question.NET mobile camera Pin
2_Raptor_229-Apr-09 17:39
2_Raptor_229-Apr-09 17:39 
AnswerRe: .NET mobile camera Pin
David Muir30-Apr-09 22:05
David Muir30-Apr-09 22:05 
Questionneed prog Pin
raviraazk29-Apr-09 6:20
raviraazk29-Apr-09 6:20 
AnswerRe: need prog Pin
0x3c029-Apr-09 10:39
0x3c029-Apr-09 10:39 
GeneralRe: need prog Pin
raviraazk30-Apr-09 2:32
raviraazk30-Apr-09 2:32 
GeneralRe: need prog Pin
Mycroft Holmes2-May-09 21:09
professionalMycroft Holmes2-May-09 21:09 
GeneralRe: need prog Pin
raviraazk2-May-09 21:52
raviraazk2-May-09 21:52 
QuestionDo to detect outlook is running or not in client? Pin
Eric Vonjacson29-Apr-09 2:29
Eric Vonjacson29-Apr-09 2:29 
AnswerRe: Do to detect outlook is running or not in client? Pin
Rolando CC29-Apr-09 3:45
professionalRolando CC29-Apr-09 3:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.