BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Speed of reading SOAP Responses

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Graham Harris
Guest





PostPosted: Wed Apr 25, 2007 11:08 am    Post subject: Speed of reading SOAP Responses Reply with quote



Hi

I am having to read large XML files that contain a JPEG image. Is there any
way of speeding up the reading of the XML data?

TIA

Graham Harris
Back to top
Jean-Marie Babet
Guest





PostPosted: Sat Apr 28, 2007 2:06 am    Post subject: Re: Speed of reading SOAP Responses Reply with quote



Hello,

Quote:
I am having to read large XML files that contain a JPEG image. Is there
any
way of speeding up the reading of the XML data?


I don't know if you have any profiling data but I suspect that the actually
read itself is as tight as it can be. IOW:

repeat
InternetQueryDataAvailable(Pointer(Context), Size, 0, 0);
if Size > 0 then
begin
InternetReadFile(Pointer(Context), @S[1], Size, Downloaded);
until Size = 0;

If the data is base64 encoded, then there's the overhead of decoding.

If you control both ends it might help to compress the data. Deepak has an
article on this: http://www.agnisoft.com/white_papers/advancedws/default.asp

In general Delphi SOAP is not very good at deserializing data optimally: for
example, for every member of an array, the same RTTI info is
retrieved/computed. I plan to remedy this when I can make interface changes
and have the routine that deseriables an array pass in the RTTI for the
element. Byte[] don't fall in that category though as they take a different
path upfront.

When time allows I'd like to profile other stacks to compare and see how we
do deserializing big byte arrays, large objects, etc.

Cheers,

Bruneau.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.