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

Re: [ANN] Fast XML Pull Parser 0.3 released

  • From: John Snelson <john.snelson@o...>
  • To: Fabrice Desré - France Telecom DR&D/MAPS/AMS <fabrice.desre@o...>
  • Date: Fri, 21 Mar 2008 09:09:54 +0000

Re:  [ANN] Fast XML Pull Parser 0.3 released
Fabrice Desré - France Telecom DR&D/MAPS/AMS wrote:
> Hello John,
> 
> Interesting new project ! A few remarks :
> 
>> * Faxpp is the only XML pull parser available for C/C++.
> 
> libxml2 also support a pull mode (see 
> http://xmlsoft.org/html/libxml-xmlreader.html and 
> http://xmlsoft.org/examples/index.html#xmlReader).

Interesting - I must have missed that when I was searching.

>> * Faxpp attempts to avoid string copies by pointing back to the parse
>> buffer wherever possible. This results in performance better than even
>> Expat under some benchmarks.
> 
>> * Faxpp can easily return strings in any user provided encoding.
> 
> Interesting approach. So I guess that the end to end performance depends 
> on wether the returned strings and the source document encoding are the 
> same or not ?

Right. For instance when parsing UTF-8 and returning UTF-8, Faxpp is 
faster than Expat. When parsing UTF-8 and returning UTF-16 Faxpp is 
currently a little slower than Expat, although I haven't put any effort 
into optimising this scenario yet.

There are other factors - null termination of returned strings and 
attribute value normalization can both cause string copies. These can 
both be disabled, although disabling the latter would mean Faxpp would 
be non-conformant.

John

-- 
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.