speeding load of sl2 controls on same page, multiple pages
Last post 05-12-2008 2:39 AM by swildermuth. 1 replies.
Sort Posts:
05-11-2008 10:54 PM
speeding load of sl2 controls on same page, multiple pages

I have been playing with my controls trying to speed the download... As far as I can tell it seems that aside from removing references to addittional code the download is related to how much C# code I have, which I assume is being compiled upon download.

In some test cases I placed 10 copies of the same user control on a page, it took like 5 seconds to load, compared to less than one second with one copy. and 200ms with no copy of the user control. So the control just keeps delaying the load time each time it is instantiated.   It is also reasonable to assume that the control will be on numerous pages coming on the same client. These tests were in VS environment, maybe it disables some of the caching I am looking for ?

Is there any way I get the dll cached so it only takes the download hit once and then can I configure the client to hold onto the compiled code... for subsequent instances on same or following pages....

Another alternative is to allow addittional code to be downloaded dynamically, which I would use the downloader for... but this is something I need to do in parrallel to the previous suggestion.

If these issues are definately being resolved prior to release please advise so I don't waste too much time on this.

Thanks

Gavan

oohogwash

Joined on 10-22-2007
Posts 8
05-12-2008 2:39 AM
Marked as Answer
Re: speeding load of sl2 controls on same page, multiple pages

Client Caching of the xap/dll isn't working in Beta 1 though some MS'ers have indicated this is a RTM feature so maybe it will be in Beta 2?

(If this has answered your question, please "Mark as Answer")

Shawn Wildermuth
C# MVP, MCSD, Speaker and Author

Silverlight 2 Workshop
May 12-14, 2008 - Atlanta, GA
May 28-30, 2008 - San Francisco, CA
http://www.silverlight-tour.com

swildermuth

Joined on 10-13-2003
Atlanta, GA
Posts 1,058