Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: Strange thing with AsemblyResolve event Pin
Freak3013-Nov-14 1:11
Freak3013-Nov-14 1:11 
QuestionQuick Loading of WPF application Pin
teek1312-Nov-14 2:42
teek1312-Nov-14 2:42 
AnswerRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 5:04
SledgeHammer0112-Nov-14 5:04 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 8:32
teek1312-Nov-14 8:32 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 8:59
SledgeHammer0112-Nov-14 8:59 
GeneralRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 9:15
professionalEddy Vluggen12-Nov-14 9:15 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 19:04
teek1312-Nov-14 19:04 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 19:21
SledgeHammer0112-Nov-14 19:21 
Ok, so 3 * 1.5 = 4.5s, 20 * .05 (avg) = 1s. So lets say on average just your start up cost is going to be 4s to 6s.

If you are spending 5s to load app standards and resources that never change, why not just embed them into the app as an XML file or something? Or if you are super paranoid about having to change them some day, implement a caching mechanism. I.e. download the resources and keep a version number. You have version 1.0. Do a single WCF call and see that the current version is 1.1, so you need to re-rab the data. Otherwise use the local copy.

If you have NEVER changed that stuff, its unlikely you ever will, so just embed it into the app.

But you've still only accounted for at most 6s of your start up time. Lets even say your splash screen is putting another 2s on top of that. That's still 8s and you are claiming the start up time is 15s. So where is that other 8s going to?

Usually for something like that, I have a vague idea of where to look, but if you don't, I would use the Visual Studio profiler that's built in. It's good enough for this job.

Also, instead of timing each individual call now, how long does the entire parallel load take?

Also, not sure if you are able to, but if you can, comment out all the load stuff and see how fast your app loads.

If you don't want to hunt around, just use the profiler to see where the cost is.
GeneralRe: Quick Loading of WPF application Pin
teek1313-Nov-14 0:11
teek1313-Nov-14 0:11 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0113-Nov-14 6:55
SledgeHammer0113-Nov-14 6:55 
GeneralRe: Quick Loading of WPF application Pin
teek1313-Nov-14 7:22
teek1313-Nov-14 7:22 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0113-Nov-14 9:12
SledgeHammer0113-Nov-14 9:12 
AnswerRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 8:04
professionalEddy Vluggen12-Nov-14 8:04 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 8:40
teek1312-Nov-14 8:40 
GeneralRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 9:14
professionalEddy Vluggen12-Nov-14 9:14 
AnswerRe: Quick Loading of WPF application Pin
Pete O'Hanlon12-Nov-14 9:43
mvePete O'Hanlon12-Nov-14 9:43 
AnswerRe: Quick Loading of WPF application Pin
NickPace12-Nov-14 10:45
NickPace12-Nov-14 10:45 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 19:20
teek1312-Nov-14 19:20 
Questionimage to text converter program Pin
arvindnitin711-Nov-14 5:56
arvindnitin711-Nov-14 5:56 
AnswerRe: image to text converter program Pin
Ravi Bhavnani11-Nov-14 5:59
professionalRavi Bhavnani11-Nov-14 5:59 
AnswerRe: image to text converter program Pin
Pete O'Hanlon11-Nov-14 5:59
mvePete O'Hanlon11-Nov-14 5:59 
Questionimage to text converter program Pin
arvindnitin711-Nov-14 5:54
arvindnitin711-Nov-14 5:54 
AnswerRe: image to text converter program Pin
Eddy Vluggen11-Nov-14 5:57
professionalEddy Vluggen11-Nov-14 5:57 
QuestionDate Diffrence Month Wise Pin
heyvid11-Nov-14 0:54
heyvid11-Nov-14 0:54 
AnswerRe: Date Diffrence Month Wise Pin
OriginalGriff11-Nov-14 1:19
mveOriginalGriff11-Nov-14 1:19 

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.