News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Christian Stocker's Blog:
Profile XSLT transformations within PHP
April 30, 2007 @ 10:09:00

Christian Stocker points out a handy patch for the PHP XSLT functionality today - one that allows you to test to see where in the transformation the most time is spent.

Look no further than this patch to the PHP XSL extension. It uses the built in profiler of libxslt to get the information which template was called how many times and how much time was spent in them. It may help in improving the speed of your XSLT transformations, like a PHP debugger can help in profiling your PHP scripts.

Besides the link, he also includes a simple sample script that uses the setProfiling function to write out to a text file the stats of the transformation. He also includes a (very beta) patch to the libxslt functionality itself to make it easier to not only time the overall execution of the xslt, but also allows for timing of other individual templates that might be included.

0 comments voice your opinion now!
xslt transformation benchmark setprofiling patch download xslt transformation benchmark setprofiling patch download


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso's Blog: Checking the performance of PHP exceptions

Ilia Alshanetsky's Blog: 5.2.2RC2 Released

Community News: New phpMyAdmin Patch Released - 2.7.0-pl1

Stefan Esser's Blog: Suhosin 0.9.20 and crypt() Thread Safety Vulnerability

PHP Security Blog: Hardening-Patch 0.4.6 for PHP released


Community Events

Don't see your event here?
Let us know!


api voicesoftheelephpant framework series opinion symfony2 application extension podcast introduction interview example community performance php7 conference library release version laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework