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

Re: DOM vs JDOM

  • From: Robin Berjon <robin@k...>
  • To: James Robertson <jamesr@s...>
  • Date: Fri, 16 Feb 2001 01:37:56 +0100

jdom memory
At 11:12 16/02/2001 +1100, James Robertson wrote:
>At 09:49 16/02/2001, Uche Ogbuji wrote:
>>Yep.  4Suite's DbDom is also a lazy DOM.  I agree that the claims quoted
>>from the article are disingenuous.
>
>Is it not true, however, that for applications such
>as XSLT, almost all of the DOM would end up loaded in
>memory?

It varies depending on your style sheet, but yes in many cases all the
nodes in a DOM will get loaded into memory at least once.

>In my understanding, lazy DOMs only save memory if
>many of the nodes are not accessed at all.

Again, it depends on the way in which the lazy DOM is implemented. I have a
prototype of a lazy DOM in which all the nodes are stored in a database or
dbm. You only have as many nodes in memory as you are presently using, the
ones which go out of scope and are no longer used disappear from memory. Of
course, it's a lot slower than using an in-memory DOM but then you can't
have everything at the same time :)

-- robin b.
Being schizophrenic is better than living alone.


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.