dgb
asked on
WebService slow on first call
I have a Visual Basic 2005 application runniing in windows CE 5.0. The VB application calls a WebService. The first time the WebService is called it takes 3 to 4 seconds (which is slow). After this it takes less than 1 second. If I leave my form and return to my form the WebService is slow again. The webService is created in the Main module.
How to make the first call also fast?
Regards,
dgb
How to make the first call also fast?
Regards,
dgb
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1.) Have a job run that touches a page on the web-site every 20 minutes or so. This will keep the site in memory. You don't even have to execute code, just touch a blank page. I've used an http command line program I wrote to do this pulling up a blank page before people arrive in the morning so the first person doesn't get a slow load.
2.) Make sure the web site with the web service isn't in Debug mode which will slow things down greatly (this is set in the web.config file). If it has to load up debug symbols it will run slower all the time.