[Yanel-dev] Performance Impact with too many includes

basZero baszero at gmail.com
Tue Feb 4 17:13:21 CET 2014


Hi,

I just noticed the following:
in XSL you can import (or include) as many other XSL files as you want
(let's call these include files). These include files have been created for
certain use cases that belong together, usually providing a set of
templates that can be reused.

I now noticed that with a lot of includes (e.g. 20) , the XSLT Processor
gets slowed down a lot.

Did anybody experience this problem as well?

I did some performance analysis and found out that for EACH include /
import statement, the processor
calls org.wyona.yanel.core.source.SourceResolver.resolve() .
That method as such is very fast (1ms).
So the performance suffers from the logic between the two calls (which is
inside the SAX parser libraries, so standard libs)...

Cheers, Balz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20140204/7771409f/attachment.html>


More information about the Yanel-development mailing list