 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Graham Harris Guest
|
Posted: Wed Apr 25, 2007 11:08 am Post subject: Speed of reading SOAP Responses |
|
|
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
|
Posted: Sat Apr 28, 2007 2:06 am Post subject: Re: Speed of reading SOAP Responses |
|
|
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 |
|
 |
|
|
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
|
|