Parsing XML schema is quite expensive and every time you transmit, say, 1
byte of data in the DataSet, schema will be parsed and loaded.
That might take many times longer than to actually transmit 1 byte. As
amount of data increases, schema parsing becomes irrelevant.
For transferring DataSet's XML of about 1 MB (~1000 records with 25-30
columns of various types) you could expect a call to take 25-30 seconds
plus transfer time on slow connection.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: PDA (WinCE 4.1) <---data---> WebService = low speed of data tr
thread-index: AcRjWUpe8qAX8nExSFaMXg+sPn2wPA==
X-WBNR-Posting-Host: 212.176.219.194
From: "=?Utf-8?B?TWFnaWNNYXg=?=" <
[email protected]>
References: <
[email protected]>
Subject: Re: PDA (WinCE 4.1) <---data---> WebService = low speed of data tr
Date: Tue, 6 Jul 2004 06:01:02 -0700
Lines: 64
Message-ID: <
[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 127.0.0.1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:56676
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
thanks for answer!
But I already use same dummy method, as you advised... I wrote some testes:
1st step - Dummy Method called
2nd step - 100 times cycled call of method, that returns about 8K of text
from WebService (just for test - string of "0" - 8000 times multiplied
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
)
This test takes about 52 seconds...
Second Test:
1st step - Dummy Method called
2nd step - 100 times cycled call of method, that returns DataSet
(contains schema - 1 table + 1 datarow - data comes from Sql Server 2000)
from WebService, data transmitted to WebService - small XmlDocument (about
100 bytes)
This test takes about 347 (!!!!) seconds...
3rd Test:
1st step - Dummy Method called
2nd step - 100 times cycled call of method, that returns converted to
string Dataset (contains schema - 1 table + 1 datarow - about 2K of text -
data comes from Sql Server 2000) from WebService, and no data transmitted
to WebService
This test takes about 85 seconds...
And Last test:
1st step - Dummy Method called
2nd step - 100 times cycled call of method, that returns same Dataset,
but as Dataset object type, not as string (contains schema - 1 table + 1
datarow - about 2K of text - data comes from Sql Server 2000) from
WebService, and no data transmitted to WebService
This test takes about 355 (!!!!!!!!!!) seconds...
Any ideas? As i see - time growed then i transmit serialized objects...