- XML

From: CFB Software <"CFB>
Date: Fri, 26 May 2006 10:46:28 +0930

----boundary-LibPST-iamunique-905284679_-_-
Content-type: text/plain

> -----Original Message-----
> From: blackbox{([at]})nowhere.xy
> Behalf Of Alexander Iliin
>
>
> By the way, did anyone actually use Microsoft's XML SDK? I am now
> working in a team which recently begun using it (not me personally,
> though). I heard from teammates that while creating an XML file it
> uses about 10 times more memory than the resulting file will be
> (i.e. 12Mb output file = 120Mb RAM while generating it). That is
> from 4Mb binary source file (which is about the same size to keep in
> memory). Excel and Internet Explorer crash when try to open the
> result.
>

Yes - that was one of the first experiments I did when I started in .NET
Because the .NET datagrid (i.e. table) can automatically load an XML file
and display it with just one or two statements it was very attractive.

I have a very simple single set of data with about 30,000 rows and a dozen
columns. It was original stored in a text TSV (tab-separated values) file
that I was displaying in a table with a Delphi program. The file size went
from 2Mb to a 20Mb XML file. That I could have lived with, but not the fact
that it took about 1 minute to display instead of 1 or 2 seconds. I did not
stop to look at the memory usage.

The next step was to write a couple of simple functions to load the original
TSV file into a .NET datagrid and I was back to the 1 or 2 seconds response
time. Consequently, I do not relish the thought of having to use any system
that relies on non-trivial quantities of XML data.

Chris Burrows
CFB Software
http://www.cfbsoftware.com/gpcp

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-905284679_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVl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0aGUgMSBvciAyIHNlY29uZHMgcmVzcG9uc2VccGFyDQp0aW1lLiBDb25zZXF1
ZW50bHksIEkgZG8gbm90IHJlbGlzaCB0aGUgdGhvdWdodCBvZiBoYXZpbmcgdG8gdXNlIGFueSBz
eXN0ZW1ccGFyDQp0aGF0IHJlbGllcyBvbiBub24tdHJpdmlhbCBxdWFudGl0aWVzIG9mIFhNTCBk
YXRhLlxwYXINClxwYXINCkNocmlzIEJ1cnJvd3NccGFyDQpDRkIgU29mdHdhcmVccGFyDQpodHRw
Oi8vd3d3LmNmYnNvZnR3YXJlLmNvbS9ncGNwXHBhcg0KXHBhcg0KLS0tIEJsYWNrQm94XHBhcg0K
LS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJvbi5j
aH19AAoNCgByb25QCAA=


----boundary-LibPST-iamunique-905284679_-_---
Received on Fri May 26 2006 - 03:16:28 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:57 UTC