PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Performance Problem witn WebService

Reply

Performance Problem witn WebService

 
Thread Tools Rate Thread
Old 08-07-2003, 06:40 PM   #1
Nikolay S
Guest
 
Posts: n/a
Default Performance Problem witn WebService


PocketPC 2002
VC#

I'm getting an webservice method from remote server on the Device, but the
execution is slow (I'm mean really slow)
And it is true for all my wegbservices, it doesn't metter if I give the IP
Address or The Server Name

Any Ideas?

Thx


  Reply With Quote
Old 08-07-2003, 11:06 PM   #2
Bardak
Guest
 
Posts: n/a
Default RE: Performance Problem witn WebService

In general the first call to a web service will cause the biggest delay
(since all the code for the web service call is JITted in addition to
address resolution delays). Further call should be a lot faster
(propotional to the speed of actual data transfer).

To improve performance you can do the following:
1. Perform the initial call to the web service when the applicaiton starts
or in a background thread. This will absorb most of the delay for the
initial call.
2. Reduce the amount of data in the call itself (avoid using Datasets that
contains a LOT of metadata). If you need to transfer large database updates
you better use SQLCE and its update mechanism (more efficient).

Hope this helps.


Bar(d)ak Cohen
..NET For Devices
groupnet@online.microsoft.com



--------------------
> From: "Nikolay S" <nikolayds@msn.com>
> Subject: Performance Problem witn WebService
> Date: Tue, 8 Jul 2003 11:40:05 -0700
> Lines: 13
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> Message-ID: <uDJWbBYRDHA.2084@TK2MSFTNGP11.phx.gbl>
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: host160.phxa.com 208.246.65.160
> Path:

cpmsftngxa09.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
..phx.gbl!TK2MSFTNGP11.phx.gbl
> Xref: cpmsftngxa09.phx.gbl

microsoft.public.dotnet.framework.compactframework:10157
> X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
>
> PocketPC 2002
> VC#
>
> I'm getting an webservice method from remote server on the Device, but

the
> execution is slow (I'm mean really slow)
> And it is true for all my wegbservices, it doesn't metter if I give the

IP
> Address or The Server Name
>
> Any Ideas?
>
> Thx
>
>
>


-Please do not send email directly to this alias. This alias is for
newsgroup purposes only
-This posting is provided “AS IS” with no warranties, and confers no rights.

  Reply With Quote
Old 08-07-2003, 11:13 PM   #3
Nikolay S
Guest
 
Posts: n/a
Default Re: Performance Problem witn WebService

No the problem is not the compiling,
I'm almost sure it is a connecting to the server
It's look like forever.

And the Data Transfer is very simple
(login screen) nothing big.

I'm using ActiveSync as a transport not a real network connection.

And may be I'll try one to see.

"Bardak" <groupnet@online.microsoft.com> wrote in message
news:gabCUWaRDHA.1720@cpmsftngxa09.phx.gbl...
> In general the first call to a web service will cause the biggest delay
> (since all the code for the web service call is JITted in addition to
> address resolution delays). Further call should be a lot faster
> (propotional to the speed of actual data transfer).
>
> To improve performance you can do the following:
> 1. Perform the initial call to the web service when the applicaiton starts
> or in a background thread. This will absorb most of the delay for the
> initial call.
> 2. Reduce the amount of data in the call itself (avoid using Datasets that
> contains a LOT of metadata). If you need to transfer large database

updates
> you better use SQLCE and its update mechanism (more efficient).
>
> Hope this helps.
>
>
> Bar(d)ak Cohen
> NET For Devices
> groupnet@online.microsoft.com
>
>
>
> --------------------
> > From: "Nikolay S" <nikolayds@msn.com>
> > Subject: Performance Problem witn WebService
> > Date: Tue, 8 Jul 2003 11:40:05 -0700
> > Lines: 13
> > X-Priority: 3
> > X-MSMail-Priority: Normal
> > X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> > Message-ID: <uDJWbBYRDHA.2084@TK2MSFTNGP11.phx.gbl>
> > Newsgroups: microsoft.public.dotnet.framework.compactframework
> > NNTP-Posting-Host: host160.phxa.com 208.246.65.160
> > Path:

>

cpmsftngxa09.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
> phx.gbl!TK2MSFTNGP11.phx.gbl
> > Xref: cpmsftngxa09.phx.gbl

> microsoft.public.dotnet.framework.compactframework:10157
> > X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> >
> > PocketPC 2002
> > VC#
> >
> > I'm getting an webservice method from remote server on the Device, but

> the
> > execution is slow (I'm mean really slow)
> > And it is true for all my wegbservices, it doesn't metter if I give the

> IP
> > Address or The Server Name
> >
> > Any Ideas?
> >
> > Thx
> >
> >
> >

>
> -Please do not send email directly to this alias. This alias is for
> newsgroup purposes only
> -This posting is provided "AS IS" with no warranties, and confers no

rights.
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off