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

Re: Re: Hostility to "binary XML"

xmltextreader_8cs source.html
Elliotte Harold wrote:

> I'm curious. Have any parser implementers built a dynamic cache of 
> preverified names? Did it help any? Even if it in the general case it 
> proves to be no faster than repeatedly checking the same names, it might 
> still be useful to preload a cache of especially common names before 
> parsing a lot of documents.

Microsoft is using this technique in .NET where a vocabulary is known a 
priori, e.g. in XSLT implementation - they eagerly preload all XSLT and 
XML keywords into a nametable at the beginning. Saxon is doing the same.

> Another possible optimization: you don't need to verify end-tags, just 
> check that it matches the start-tag, which you have to do anyway. I'm 
> almost certain some, perhaps most or all, parsers are doing this already.

At least .NET's XmlTextReader employs it - 
line 742 (that's sscli sources - officially it's not .NET sources, but 
frankly speaking they are almost always very-very close to .NET 1.0).

Oleg Tkachenko
Multiconn Technologies, Israel


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

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.