[ 
https://issues.apache.org/jira/browse/SYNAPSE-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12609121#action_12609121
 ] 

Andreas Veithen commented on SYNAPSE-378:
-----------------------------------------

The strategy to build Source and Result objects can now be selected by adding 
the following elements to the mediator configuration:

<attribute name="http://ws.apache.org/ns/synapse/transform/attribute/sbf"; 
value="org.apache.synapse.util.jaxp.AXIOMSourceBuilderFactory"/>
<attribute name="http://ws.apache.org/ns/synapse/transform/attribute/rbf"; 
value="org.apache.synapse.util.jaxp.StreamResultBuilderFactory"/>

(Note that this is a temporary solution; we can agree later on what is the best 
way to configure/select the strategies.)

There are four strategies to build the Source:

org.apache.synapse.util.jaxp.AXIOMSourceBuilderFactory (experimental)
org.apache.synapse.util.jaxp.DOOMSourceBuilderFactory
org.apache.synapse.util.jaxp.SpringStaxSourceBuilderFactory
org.apache.synapse.util.jaxp.StreamSourceBuilderFactory

There are two strategies to build the Result:

org.apache.synapse.util.jaxp.DOOMResultBuilderFactory
org.apache.synapse.util.jaxp.StreamResultBuilderFactory

AXIOMSourceBuilderFactory is incomplete but there should be enough support to 
run the performance tests. All strategies except DOOMSourceBuilderFactory work 
with Saxon (I solved the problem with Spring's StaxSource by upgrading to a new 
version of spring-xml.jar).

Ruwan, can you rerun the performance tests?

> Improve the performance of the XSLT mediator
> --------------------------------------------
>
>                 Key: SYNAPSE-378
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-378
>             Project: Synapse
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.2
>            Reporter: Ruwan Linton
>            Assignee: Andreas Veithen
>
> XSLTMediator performance can be further improved by using various 
> methodologies and the idea is to enable a configuration point where a user 
> can specify the optimized methodology for his configuration.
> Some of the methodologies will be Stax based Source, StreamSource and 
> StreamResult, and so on... It is better if we can write an AXIOMSource and 
> AXIOMResult pair which should give the best performance :-)
> Also we can use features to enable these methodologies, and it is obvious 
> that only one of these set of features can be used for a given XSLT config 
> and we might introduce a priority level so that if two of these features are 
> used highest priority one will be used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to