Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Delphi-BCB/SOAP/Components    [ Add a report in this area ]  
Report #:  26063   Status: Closed
Poor performance in TOPToSoapDomConvert
Project:  Delphi Build #:  10.0.2166.28377
Version:    10.0 Submitted By:   Mikael Eriksson
Report Type:  Minor failure / Design problem Date Reported:  3/14/2006 4:37:37 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   241798
Resolution: Fixed (Resolution Comments) Resolved in Build: :
Duplicate of:  None
Voting and Rating
Overall Rating: (8 Total Ratings)
4.38 out of 5
Total Votes: 14
Description
I am experiencing very poor performance when a webservice returns an array of objects. 600 elements in my case takes about 5 seconds to parse and 6000 takes forever (5 minutes).

I'm using a win32 D2006 client against a Tomcat server.
If I use a .NET D2006 client performance is no problem.

The problem is a couple of functions that needs to be rewritten in TOPToSoapDomConvert.

I have made a subclass to TOPToSoapDomConvert (see workaround) that overrides the following methods.
FindNodeByHREF
AddMultiRefNode
FindMultiRefNodeByID
FindMultiRefNodeByInstance
ResetMultiRef
ReadRow

In order to do this I had to change the declarations of the functions to be dynamic in TOPToSoapDomConvert. Otherwise I could not override them.

To use it I create an instance of TFasterSOAPDomConv and assign it to the Converter property of the THTTPRIO instance.

When using this class as converter the time to parse 6000 rows is 5 seconds.
Steps to Reproduce:
I have attached a Delphi dotnet SOAP Server and a Delphi Win32 Client to this item so that you can use to verify that TOPToSoapDomConvert is indeed slow. Or at least that it slows down dramatically with increasing number of items returned.
If you want any more instructions as how to use it please let me know.

It can also be used to verify QC 26373
Workarounds
see attachment
Attachment
SOAPPerformanceTest.zip
Comments

Registered User at 3/21/2006 4:53:42 AM -
The attached ZIP-file appears to be broken (both Winzip and unzip.exe cannot unzip it).

Bjorn Hamrin at 3/26/2006 1:03:56 PM -
In firefox you can't rightclick and save. You then get an aspxfile.

Mikael Eriksson at 3/21/2006 10:22:44 AM -
I have no problem unzipping the attachment.
It should be 574 576 byte.
Anybody else having trouble?

Server Response from: ETNACODE01