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

Re: [Summary] Eager and Just-in-Time loading of XML Schema doc

  • From: Michael Glavassevich <mrglavas@ca.ibm.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Sat, 7 Aug 2010 12:14:29 -0400

Re:  [Summary] Eager and Just-in-Time loading of XML Schema	doc

Mukul Gandhi <gandhi.mukul@gmail.com> wrote on 08/07/2010 11:30:03 AM:

> I just wonder how could consideration of eager or late loading of XML
> schema documents can significantly affect performance of an entire
> validation episode.
>
> I think, however large the XML document is, the corresponding schema
> documents are relatively smaller. For example, if an XML element has
> maxOccurs="unbounded" specification in an XML schema document, then
> there could potentially be uncountable instances of such elements in
> corresponding XML documents, which can practically lead to very large
> XML document sizes.
>
> So I think, how could just in time loading of schema documents can
> improve the overall performance of validation episode.


It can reduce memory usage.

> I don't think that, eager loading of XML schema documents of any (or most of)
> practical XML application retards performance of the whole schema
> validation episode (since loading of schema documents, and creating
> grammar objects of most practical XML schema's is a pretty fast and
> memory optimizing operation).

In a long running application the (time) cost of schema loading can be made insignificant if the API (e.g. JAXP 1.3 Validation [1] or Xerces' grammar pools [2]) you're using caches the schema it loaded in memory and allows you to reuse that "compiled" result for validation. But if you're loading the same schema over and over again on each validation episode it can be very expensive and have seen many scenarios (particularly industry standards) where the set of schema documents are several orders of magnitude larger than the typical instance documents being validated.

> On Sat, Aug 7, 2010 at 7:16 PM, Costello, Roger L. <costello@mitre.org> wrote:
> > EXPLOITING JUST-IN-TIME LOADING TO ENHANCE PERFORMANCE
> >
> > Consider this scenario:
> >
> > 1. Your XML document is very large.
> >
> > 2. The XML Schemas that will be used to validate the XML document
> are independent (or, the XML Schemas can be partitioned into
> independent sets).
>
>
>
> --
> Regards,
> Mukul Gandhi
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[1] http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/package-summary.html
[2] http://www.ibm.com/developerworks/xml/library/x-perfap3.html#N10194

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com

E-mail: mrglavas@apache.org



[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.