[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: Mukul Gandhi <gandhi.mukul@gmail.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Sun, 8 Aug 2010 07:11:03 +0530

Re:  [Summary] Eager and Just-in-Time loading of XML Schema doc
On Sat, Aug 7, 2010 at 9:44 PM, Michael Glavassevich
<mrglavas@ca.ibm.com> wrote:
> It can reduce memory usage.

I would now agree to this :)

I'm not sure if Xerces-J does any kind of "just in time" loading of
schema documents. Or does it has any? I think you wrote in an earlier
thread, that Xerces-J loads the whole of hierarchy of schema documents
eagerly. I have not heard of any user comments, if eager loading of
schemas have had any performance or memory problems to them (perhaps
user's don't notice this, due to generally better hardware we have
these days).

I'm a little skeptical of incurring significant (looks like to me)
design changes to schema validator design to accommodate "just in
time" loading, to satisfy a tiny fraction of the use-cases.

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

I agree and thanks :)



-- 
Regards,
Mukul Gandhi


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