Re: Streaming XML



On 19 Sep, 10:48, nano2k <adrian.rot...@xxxxxxxxxxx> wrote:
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.

To be more explicit, I want to obtain the result of OuterXml property
using a Stream.
Calling OuterXml will in fact produce a HUGE string to be compressed
and this will produce a very high memory peek, which it MUST be
avoided.

.



Relevant Pages

  • 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)
  • Re: Determine the compressibility of a data buffer .. how to do this fast ?
    ... > memory without using an actual compression scheme. ... You could run through the buffer doing a compression, ... surprisingly predictive of whether the file would compress well. ... cleverer ways of predicting compressibility, ...
    (comp.programming)
  • Re: Researchers seek to patent memory doubler algorithm
    ... "memory doubler" to increase his brain implant's storage capacity. ... Dubbed Crames, for Compressed RAM for Embedded Systems, the memory ... "We were told that it was impossible to compress data in RAM without ... unacceptable levels of latency," said electrical engineer Robert Dick, ...
    (comp.compression)
  • Re: FASTER PERFORMANCE
    ... Leaving the computer on 24/7 means that programmes with memory leaks do ... Your system is bad fragmented and you need to increase your free disk to ... Empty your Recycle Bin and Remove Temporary Internet Files. ... select Properties, General, Advanced and check the box before Compress ...
    (microsoft.public.windowsxp.general)
  • Researchers seek to patent memory doubler algorithm
    ... "memory doubler" to increase his brain implant's storage capacity. ... Dubbed Crames, for Compressed RAM for Embedded Systems, the memory ... "We were told that it was impossible to compress data in RAM without ... unacceptable levels of latency," said electrical engineer Robert Dick, ...
    (comp.compression)

Quantcast