[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML DOM Object size limitations
- From: Robin LaFontaine <robin@monsell.co.uk>
- To: Chris Loschen <loschen@texterity.com>, xml-dev@lists.xml.org
- Date: Thu, 25 Jan 2001 18:58:03 +0000
Newsha,
I think you'll find that the memory image of a DOM for a 6MB file
will be a lot more than 6MB, probably several times larger. In the
early days I was certainly warned that for larger files 10MB+ DOM was
not really very good because of its size. For our comparators we had
to use an array structure that would use less than 6MB memory for a
6MB file so that we can handle large files.
Does anyone know the actual ratio of memory size of a DOM relative to
the file (of course it varies according to pretty printing and file
structure, but approx.)?
Robin
At 12:04 PM -0500 1/25/01, Chris Loschen wrote:
>At 2:51 PM -0700 1/24/01, Newsha Makooi wrote:
> >Dear all,
> >
> >What is the XML DOM Objects' size limitations (if any)?
> >
> >When attempting to load a well-formatted XML string
> >(DOMObj.loadXML(myXMLStrin)) of 6MB or bigger, the loadXML fails.
> >Is there a particular reason for this? Is my XML too big to load?
> >Is there a size limitation at all?
> >
> >All response and thoughts on this are appreciated.
> >
> >Regards,
> >Newsha Makooi
>
>I'm not sure if this is related, but I know we had a problem here
>when the size
>of the DOM object exceeded the amount of available memory. That was a file
>several orders of magnitude biger than 6 megs, though. Do you have more
>than 6 megs of available memory when the load fails?
>--
>
>
>
>--Chris
>
>------------------------------------------------
>Texterity ~ XML and PDF ePublishing Services
>------------------------------------------------
>Chris Loschen, XML Developer
>Texterity, Inc.
>144 Turnpike Road
>Southborough, MA 01772 USA
>tel: +1.508.804.3033
>fax: +1.508.804.3110
>email: loschen@texterity.com
>http://www.texterity.com
-- -----------------------------------------------------------------
Robin La Fontaine, Monsell EDM Ltd
(XML file comparison, Engineering data exchange and management using
XML, R&D Project Management)
Tel: +44 1684 592 144 Fax: +44 1684 594 504
Email: robin@monsell.co.uk http://www.deltaxml.com