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

Java SAX Speed (Was: Pushing SAX events out onto the Web?)

  • To: xml-dev@l...
  • Subject: Java SAX Speed (Was: Pushing SAX events out onto the Web?)
  • From: Jochen Wiedmann <joe@i...>
  • Date: Wed, 14 Aug 2002 08:45:39 +0200 (CEST)
  • Cc: "Roger L. Costello" <costello@m...>
  • User-agent: IMP/PHP IMAP webmail program 2.2.6

sax speed

Hi, Roger,

I have Java classes available that

  a) Convert SAX events into a binary stream and tha
  b) convert such a binary stream into SAX events

If you are interested, I will send them to you.


Btw, that brings me to another question, which may
be of interested to Dare:

I originally wrote this classes with the idea to
replace the SAX generator with a C library. I hoped
that reading the binary stream and converting it into
SAX might be much more efficient than using a SAX
parser to read the serialized XML and converting
that into a SAX stream.

However, the result was *quite* surprising:

- Running the examples for the first time gave the
  expected result: The actual XML parser took about
  150 ms, my binary parser took 10 ms.

- Running the examples a second time (in a loop)
  changed the times to about 40 ms and 10 ms.

- And repeating the examples over and over again
  resulted in an average time of 10 ms both, the
  actual XML parser (Crimson) being indeed slightly
  faster

I though of Hotspot, but I doubt that it can speed
up an XML parser that much. And using the classic
engine didn't change matters.

Any explanations or ideas?


Regards,

Jochen

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.