You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Yves Monier <yv...@temis-group.com> on 2005/08/30 10:30:27 UTC

xalan-c 1.9 pezrformance issue?

Hi everybody,

I recently switched from xalan-c 1.4 (with xerces-c 2.1.0) to xalanc-c 1.9 (xerces-c 2.6.0) for compatibility reasons with some of our supported linux platforms.
No more compilation/link issues now with version 1.9 but it appears that this version is MUCH slower than 1.4, at least with the xml & xsl files I deal with...

I also noticed which sounds like a new bug: the xsl:output omit-xml-declaration attribute seems to be ignored. My xsl contains it (value="yes") and xalan-c 1.4 transformation did not generate the xml header, as expected, whereas version 1.9 still generates the header... Anyway, I can leave this that. 

The performance issue is much more problematic. 
I did some tests with different sizes for my xml file, using Xalan.exe from the command line:
92 kb xml: approx. 1.5s for xalan-c 1.9 (approx. 2s for version 1.4)
491kb: 10s (3s for v1.4)
937kb: 21s (4s)
1128kb: 33s (4s)
1505kb: 1m25s (4s)
...
...
14655kb: 1h27m (22s) !!!

The xsl uses two xsl:key for Muenchian grouping. Nothing especially tricky, at least for other processors like xalan-c 1.4 and saxon...
I had a look to the xalan-c mailing list archive and open bugs but found nothing on performance aspects...

I attached my xsl and a subset of the xml file I use.

Thanks in advance for any hint!

Yves

Re: xalan-c 1.9 pezrformance issue?

Posted by Yves Monier <yv...@temis-group.com>.
Thanks for the answer!
At least I'm not alone ;-)

----- Message d'origine ----- 
De : "Holger Flörke" <fl...@doctronic.de>
À : <xa...@xml.apache.org>
Envoyé : mardi 30 août 2005 11:11
Objet : Re: xalan-c 1.9 pezrformance issue?


>I also have noticed performance degration when using xsl:key for Xalan 1.9.
> But I had not the time to analyze the problem deeper for commiting this as
> an open issue.
>
> HolgeR
>
> Yves Monier schrieb:
>
>> Hi everybody,
>>
>> I recently switched from xalan-c 1.4 (with xerces-c 2.1.0) to xalanc-c
>> 1.9 (xerces-c 2.6.0) for compatibility reasons with some of our
>> supported linux platforms.
>> No more compilation/link issues now with version 1.9 but it appears that
>> this version is MUCH slower than 1.4, at least with the xml & xsl files
>> I deal with...
>>
>> I also noticed which sounds like a new bug: the xsl:output
>> omit-xml-declaration attribute seems to be ignored. My xsl contains it
>> (value="yes") and xalan-c 1.4 transformation did not generate the xml
>> header, as expected, whereas version 1.9 still generates the header...
>> Anyway, I can leave this that.
>>
>> The performance issue is much more problematic.
>> I did some tests with different sizes for my xml file, using Xalan.exe
>> from the command line:
>> 92 kb xml: approx. 1.5s for xalan-c 1.9 (approx. 2s for version 1.4)
>> 491kb: 10s (3s for v1.4)
>> 937kb: 21s (4s)
>> 1128kb: 33s (4s)
>> 1505kb: 1m25s (4s)
>> ...
>> ...
>> 14655kb: 1h27m (22s) !!!
>>
>> The xsl uses two xsl:key for Muenchian grouping. Nothing especially
>> tricky, at least for other processors like xalan-c 1.4 and saxon...
>> I had a look to the xalan-c mailing list archive and open bugs but found
>> nothing on performance aspects...
>>
>> I attached my xsl and a subset of the xml file I use.
>>
>> Thanks in advance for any hint!
>>
>> Yves
>
> -- 
> holger floerke                      d  o  c  t  r  o  n  i  c
> email floerke@doctronic.de          information publishing + retrieval
> phone +49 228 92 682 00             http://www.doctronic.de
> 


Re: xalan-c 1.9 pezrformance issue?

Posted by Holger Flörke <fl...@doctronic.de>.
I also have noticed performance degration when using xsl:key for Xalan 1.9.
But I had not the time to analyze the problem deeper for commiting this as
an open issue.

HolgeR

Yves Monier schrieb:

> Hi everybody,
>  
> I recently switched from xalan-c 1.4 (with xerces-c 2.1.0) to xalanc-c
> 1.9 (xerces-c 2.6.0) for compatibility reasons with some of our
> supported linux platforms.
> No more compilation/link issues now with version 1.9 but it appears that
> this version is MUCH slower than 1.4, at least with the xml & xsl files
> I deal with...
>  
> I also noticed which sounds like a new bug: the xsl:output
> omit-xml-declaration attribute seems to be ignored. My xsl contains it
> (value="yes") and xalan-c 1.4 transformation did not generate the xml
> header, as expected, whereas version 1.9 still generates the header...
> Anyway, I can leave this that.
>  
> The performance issue is much more problematic.
> I did some tests with different sizes for my xml file, using Xalan.exe
> from the command line:
> 92 kb xml: approx. 1.5s for xalan-c 1.9 (approx. 2s for version 1.4)
> 491kb: 10s (3s for v1.4)
> 937kb: 21s (4s)
> 1128kb: 33s (4s)
> 1505kb: 1m25s (4s)
> ...
> ...
> 14655kb: 1h27m (22s) !!!
>  
> The xsl uses two xsl:key for Muenchian grouping. Nothing especially
> tricky, at least for other processors like xalan-c 1.4 and saxon...
> I had a look to the xalan-c mailing list archive and open bugs but found
> nothing on performance aspects...
>  
> I attached my xsl and a subset of the xml file I use.
>  
> Thanks in advance for any hint!
>  
> Yves

-- 
holger floerke                      d  o  c  t  r  o  n  i  c
email floerke@doctronic.de          information publishing + retrieval
phone +49 228 92 682 00             http://www.doctronic.de

Re: xalan-c 1.9 pezrformance issue?

Posted by da...@us.ibm.com.
> Great!
> Do you have an approx. date for version 1.10 delivery? Also, will
> it be based on the current (2.6.0) xerces-c version, or on a new
> one?

Xerces-C 2.7 will be released within the next 2 weeks.  Once they've done 
their release, we can do ours.  I would expect sometime by the beginning 
of October, but it's really hard to say at this point.

Dave

Re: xalan-c 1.9 pezrformance issue?

Posted by Yves Monier <yv...@temis-group.com>.
Great!
Do you have an approx. date for version 1.10 delivery? Also, will it be 
based on the current (2.6.0) xerces-c version, or on a new one?

Best,

Yves

----- Message d'origine ----- 
De : <da...@us.ibm.com>
À : <xa...@xml.apache.org>
Envoyé : mardi 30 août 2005 18:49
Objet : Re: xalan-c 1.9 pezrformance issue?


>I also noticed which sounds like a new bug: the xsl:output
>> omit-xml-declaration attribute seems to be ignored. My
>> xsl contains it (value="yes") and xalan-c 1.4 transformation
>> did not generate the xml header, as expected, whereas version
>> 1.9 still generates the header ... Anyway, I can leave this
>> that.
>
> This bug has been fixed in the latest CVS code and will appear in
> the next release.
>
>> 14655kb: 1h27m (22s) !!!
>>
>> The xsl uses two xsl:key for Muenchian grouping. Nothing
>> especially tricky, at least for other processors like
>> xalan-c 1.4 and saxon... I had a look to the xalan-c mailing
>> list archive and open bugs but found nothing on performance
>> aspects...
>
> This bug has also been fixed in the latest CVS code.
>
> Dave
> 


Re: xalan-c 1.9 pezrformance issue?

Posted by da...@us.ibm.com.
I also noticed which sounds like a new bug: the xsl:output
> omit-xml-declaration attribute seems to be ignored. My
> xsl contains it (value="yes") and xalan-c 1.4 transformation
> did not generate the xml header, as expected, whereas version
> 1.9 still generates the header ... Anyway, I can leave this
> that. 

This bug has been fixed in the latest CVS code and will appear in
the next release.

> 14655kb: 1h27m (22s) !!!
> 
> The xsl uses two xsl:key for Muenchian grouping. Nothing
> especially tricky, at least for other processors like
> xalan-c 1.4 and saxon... I had a look to the xalan-c mailing
> list archive and open bugs but found nothing on performance
> aspects...

This bug has also been fixed in the latest CVS code.

Dave