RE: [xml] Saving without tree

Date view Thread view Subject view Author view

From: Alfred Reibenschuh (alfred.reibenschu@chello.at)
Date: Tue May 30 2000 - 03:36:05 EDT


Hi!

> -----Original Message-----
> From: xml-request@rufus.w3.org [mailto:xml-request@rufus.w3.org]On
> Behalf Of mdf@angoss.com
> Sent: Tuesday, May 30, 2000 1:43 AM
> To: xml@rpmfind.net
> Subject: Re: [xml] Saving without tree
>
>
[...]
>
> If this understanding is correct, the primary issue is the usual one:
> memory consumption. Namely, one will have the source data in-memory
> [unavoidable [*]], an in-memory document tree, and, the in-memory XML
> equivalent of this tree.

Although it may sound heretic to libxml, but if you want to avoid much
of the "complete tree in memory" stuff you should look into xdbm which
is currently available at http://www.bowerbird.com.au/XDBM/

-- Alfred Reibenschuh

+----------------------------------------------------+
| linux geek, perl monger, roleplayer & sf-fanatic |
+----------------------------------------------------+
| Sometimes I hear voices in my head |
| telling me to do strange things, but |
| I always wonder if that's just me thinking |
| about things I really want to do anyway. |
| |
| Why do the voices never say, |
| "Your dosage needs adjustment"? |
+----------------------------------------------------+
| look @ http://www.penguin.at0.net/~fredo/ |
+----------------------------------------------------+

>
> For piddly small documents like web-pages and the like, this is probably
> bearable. But for multi-megabyte monsters, it would be better if the
> memory footprint for a simple "save" operation be nominal to non-existant.
>
> This is probably easiest done when one has a nifty stream gizmo into
> which one just dribbles the XML straight out of the application's
> objects, and this eventually makes it to the disk (or socket connection
> or whereever). Net memory hit is independent of document size, and might
> be a mighty 4k if one is feeling decadent the day the code is
> written... ;-)
>
> [*] In the application area I am interested in, there is really a
> continuous
> stream of source data. So even though the total amount of data is, in
> principle at least, unbounded, the actual data being dealt with at any
> time is O(100 bytes).
>
> > I also strongly suggest that if your
> interested going
> > that deep in the technical details of the library, then your should
> > use the CVS tree to see what is really there and not an ancient version.
>
> I am looking at, and using, libxml2.0.0.
> ----
> Message from the list xml@xmlsoft.org
> Archived at : http://xmlsoft.org/messages/
> to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
>

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:13 EDT