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

Re: SAX: Byte Streams and Character Streams

  • From: David Megginson <ak117@f...>
  • To: Xml-Dev List <xml-dev@i...>
  • Date: Sun, 19 Apr 1998 17:45:31 -0400

bray streams
Tim Bray writes:

 > Hmmm, for what it's worth, Lark, both in its current form and
 > after the big performance update coming Real Soon Now, works
 > at approximately equal speed off byte and character streams...
 > the overhead of pouring a buffer's worth of bytes into the
 > internal character buffer that Lark will be reading from
 > is hardly detectable.  The next Lark will not be as fast as XP but
 > it won't be that much slower.  I'd be interested in what the other 
 > parser builders have done in this area.   -T.

AElfred reads a big buffer (up to 32K) of bytes, then translates it
into a big buffer of characters using whatever the current encoding
scheme is.  Profiling shows that the overhead of doing this is
surprisingly low, since it all happens in a tight loop.

AElfred can now also read directly from a Reader, bypassing the
conversion altogether.

The Lark driver in the current pre-release of SAX feeds a character
stream to Lark as an InputStream of UTF-8 bytes, using a surprisingly
inefficient algorithm that I can fix when I have time.  Will the next
version of Lark support character streams?


All the best,

David

-- 
David Megginson                 ak117@f...
Microstar Software Ltd.         dmeggins@m...
      http://home.sprynet.com/sprynet/dmeggins/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.