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

RE: Java performance (Saxon)

Subject: RE: Java performance (Saxon)
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 1 Mar 2000 12:30:53 -0000
decimalformat performance
> Kay Michael wrote:
> 
> >                    A         B         C         D       E
> > Saxon 5.2, Sun     9.4       15.9      19.3      20.1    5.3
> > Saxon 5.2, MS      4.9        9.5      11.8      12.9   20.0
> > Saxon 5.3, Sun     7.3       12.3      18.4      18.0    5.8
> > Saxon 5.3, MS      3.1        5.2      19.0      10.8   19.8
> 
> Is this with the JIT enabled?? 

Yes.

Just to update the picture for anyone who is interested, I've pinned down
the anomalous behaviour of stylesheet E to to format-number() function. On
Microsoft, the cost of this is linear: 1000 calls take 2163 ms, 16000 calls
take 33167 ms. With SUN (now using JRE 1.3 - thanks for the tip) it's better
than linear: 1000 calls take 621 ms, 16000 calls take 3265 ms, 128000 calls
take 19989 ms.

format-number() is implemented using Java classes DecimalFormatSymbols and
DecimalFormat. I guess SUN are somehow remembering that the same format
pattern is used each time. Don't know how they do it, but it points to
another area for possible tuning.

Mike Kay 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.