« The Millionaire Responds! | Main | Small, niche software »
March 28, 2004
First web service call is slow
This is something I've always noticed but never really looked into.
While on the subject of performance... Have you ever wondered why the first call to a method on a Web service takes more time than subsequent calls? The first time a method on a Web service is called causes the soap client to reflect over the Web service proxy object. To mitigate this delay declare the Web service object global to the class and call a simple web method on the Web service during form load. Subsequent calls will not incur this reflection overhead.[Jono's Blog]
Posted by mikel at March 28, 2004 05:44 PM
Comments
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)