Streaming XML



Hi
In my application I manage an XmlDocument object.
This document object grows bigger and bigger while the application
runs.
The document is used as a buffer of data, so it's frequently updated
and read, that's why I'm keeping it in mamory.
When the application closes, I save the cached data on the disk. Next
time the app starts, I load the saved data and continue working with
that buffered data.
I have 2 issues regarding this:

1. The first is related to memory usage. My document may grow up to
tens or hundreds megabytes in occupied memory. Is it another proper
way of keeping this object besides the "classical" in-memory?
2. When saving the document, I want to compress it. To do that, I have
a compressor class that compresses a IO.Stream. How do I stream the
XML document?

Thanks.

.



Relevant Pages

  • Re: Streaming XML
    ... This document object grows bigger and bigger while the application ... The document is used as a buffer of data, ... The first is related to memory usage. ... I want to compress it. ...
    (microsoft.public.dotnet.xml)
  • RFC: Block size > PAGE_SIZE
    ... maximum block size of block devices. ... There are some devices that have bigger that 4K block ... buffer and thus buffer cannot be larger that 4K, ... The extent based filesystems can also benefit from ...
    (Linux-Kernel)
  • Re: Anyone using GPG on VMS?
    ... count of variable record length files. ... bigger read operations which would greatly reduce overhead. ... larger buffer s like 32k buffers or even bigger ?) ... the FAB and find out how many allocated blocks, and offset to EOF on the ...
    (comp.os.vms)
  • Re: String to byte[] reloaded
    ... can reuse the same buffer several times. ... I cannot change the compress method's signature (e.g. ... To make sure I handle very careful such a ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Malcolms new book - Chapter 1 review
    ... he will naturally assume that the reason for the size_t is to allow the ... function to compress an buffer that can be held in memory. ... absolutely no way, with your functions, to specify how long it is. ...
    (comp.lang.c)