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

Re: Schema style and parser performance


schema styles
In article <jdgvavg0urv5e14qd2d0qf46cihgmpbq4m@4...> you write:

>We have all seen the various styles of WXS schema in use: Russian
>Doll, with everything nested, Venetian Blind, full of global complex
>type definitions, and Salami Slice, with global element definitions
>accessed using "ref" attributes.
>
>Has anyone considered the effect of these different models on parser
>performance, either from a theoretical or practical view?

I wouldn't expect any noticeable difference.  In XSV we generate a
finite-state machine for content models, with the states having
pointers to the element declarations and the element declarations
having pointers to the type declarations, so there is no looking-up of
element or type names in the usual case (there is for wildcards of
course).

A lot will depend on whether you end up reading in the schema for each
document.  That may well take much longer than the validation itself
for small documents.

-- Richard

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-2007 All Rights Reserved.