[ 
https://issues.apache.org/jira/browse/ODE-296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ciaran Jessup updated ODE-296:
------------------------------

    Attachment: HelloWorld2.zip

I'm not totally sure this is a micro-optimization, I use the document function 
a lot, each flow calls it many times.  I've attached a simple example flow that 
uses document() to chose a an element in an external document.  I've then 
loaded it from soapui to see what the behaviour is without any file-caching, 
and with (A simple static non-synchronised HashMap in the XslRuntimeUriResolver)

The following documents my results (all times are in ms).:

Single Thread, 1000 runs no caching:
    min  ,max, avg
    8,      70,    9.93

Four threads, 1000 runs no caching
    min  ,max,   avg
     7,      192,  25.13

Single Thread, 1000 runs caching:
    min  ,max, avg
    6,       54,     7.68,

Four threads, 1000 runs caching
    min  ,max,   avg
      6,    88,     17.54

Now I grant the times aren't massively different, but this example is trivial, 
in my real flows I can call this method tens of times, so shaving 20x 2ms off 
of one call can be quite a win for me ! 

Looking at the code StreamUtils, it also seems to use a non FileChannel 
approach to loading in file data, In the past I've had quite a lot of success 
in leveraging NIO to increase the file-reading speeding, this might be worth 
looking at :)


> Support XSLT's document() function
> ----------------------------------
>
>                 Key: ODE-296
>                 URL: https://issues.apache.org/jira/browse/ODE-296
>             Project: ODE
>          Issue Type: New Feature
>          Components: BPEL Runtime
>            Reporter: Ciaran Jessup
>             Fix For: 1.2
>
>         Attachments: AddDocumentSupport.patch, AddDocumentSupportv2.patch, 
> FixUnneccessaryConstructorArgs.patch, HelloWorld2.zip, HelloWorld2.zip
>
>
> Currently the BPEL runtime does not support executing XSL stylesheets that 
> use the XSLT document() function to retrieve resources local to the process 
> directory.  

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

Reply via email to