Quantcast
Viewing latest article 40
Browse Latest Browse All 3715

First run of XSLTRunTrScenario is slow

Hi, I am using XSLTRunTrScenario with ExtendScript's CallClient to transform some XML data before using it in a script. The first run of the script is very slow; I am not sure if it is loading the processor, or doing some kind of caching, because subsequent runs are very fast. Any suggestions on maybe doing something on startup to avoid the slow first run?

 

This is an example of the function I am using in my script, where transform is a JavaScript object that contains the required parameters.

 

function runTransformation (transform) {        var cmd, result;        // Delete the output file in case it exists.    File (transform.out).remove ();    // Create the command string.    cmd = 'XSLTRunTrScenario -dontusefmconsole ' +         '-file \"' + transform.xml + '\" ' +        '-xslfilepath \"' + transform.xsl + '\" ' +        '-processor \"' + transform.pro + '\" ' +        '-outputfilepath \"' + transform.out + '\"';    // Invoke the transform.    result = CallClient ("FmXSLT", cmd);
}
Image may be NSFW.
Clik here to view.

Viewing latest article 40
Browse Latest Browse All 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>