[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to get timing information with 4xslt(4Suite)?

Subject: Re: How to get timing information with 4xslt(4Suite)? (Was: Re:Re: Announcement: FXSL version 1.2)
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 16 Jun 2003 15:05:19 -0600 (MDT)
edt timing
Dimitre Novatchev wrote:
> Thank you once again. I just installed 4Suite and ran 4xslt.
> Seems a nice and very fast XSLT processor.

It's not bad, and it's (IMHO) the ideal XSLT processor for python users, at
least those who don't want to use something like Pyana (a wrapper for Xalan).

We have XPath optimizations pending that will bring us back up to Saxon's
speed, or better, based on some preliminary tests with DocBook. Right now,
we're faster than Saxon only if you use JDK 1.1 :)

For now, we are still working toward conformance... better to be 99.9% correct
and somewhat slow (but not so slow as to be impractical) than super fast yet
wrong. After the 1.0 release we'll look for other bottlenecks and optimize
them in C. The known bugs in XPath/XSLT processing are all pretty minor:

Re: the name of the processor, call it 4Suite, or 4xslt, it doesn't matter.
The XSLT processing library in 4Suite is called 4XSLT, and the command-line
script that provides an interface to that library is 4xslt. 4Suite has various
other libraries and features that don't necessarily have anything to do with
XSLT, but can integrate with it where necessary (e.g. RDF and XML document
repository related extension functions and elements).

> Is there any command-line option
> or any other way to obtain the time spent on the transformation?

There's none currently, but it is easy to add a "--time" option. Here is a
patch for Ft/Xml/Xslt/_4xslt.py. Apply it to the source and then re-run
'setup.py install'.

< import re, os, sys, traceback, cPickle
> import re, os, sys, traceback, cPickle, time
>     checktime = options.has_key('time')
>       if checktime:
>             start = time.time()
>         if checktime:
>             end = time.time()
>         if checktime:
>             print "Transformation time: %0.3fs" % (end - start)
>                                                          ),
>                                           Options.Option(None,
>                                                          'time',
>                                                          'Display the elapsed transformation time on stderr.'

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.