473,583 Members | 4,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Save / restore XMLDOM avoiding serialization

Can anyone provide guidance for saving and restoring an XMLDOM object as a
binary blob? In a VB application, I need to repeatedly save and restore a
large, dynamic XML document. Currently, the CPU overhead of serialization
and de-serialization is KILLING performance.

I have done some tests and if I could persist the DOM as a binary blob, I
think the performance issues would be resolved. A pair of orthogonal
functions that translate between XMLDOM and byte array would be great.

Thanks for your assistance.
Dave
Nov 11 '05 #1
1 1905
Dave Romig wrote:
Can anyone provide guidance for saving and restoring an XMLDOM object as a
binary blob? In a VB application, I need to repeatedly save and restore a
large, dynamic XML document. Currently, the CPU overhead of serialization
and de-serialization is KILLING performance.

I have done some tests and if I could persist the DOM as a binary blob, I
think the performance issues would be resolved. A pair of orthogonal
functions that translate between XMLDOM and byte array would be great.

I don't think it would help. Performance penalty of serializing and
deserializing of large object graph is unavoidable, you'd better avoid
save/restore of big DOM objects in your design, why do you need it, btw?
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4262
by: Robert Zurer | last post by:
Hello all, I want to load an in-memory XmlDocument from the server to the client and create an XMLDOM object using javascript. I can do it from a url by calling this Javascript from the client. var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = "false"; xmlDoc.load("url of the persisted file");
8
3628
by: Mr. x | last post by:
Hello, How can I use xmlpath technogy by xmldom. (or there is another technique, but not xmldom). I need some code samples, please. Thanks :)
6
5102
by: Laserson | last post by:
Hi! I have one question about SaveSetting() function. I have one checkbox and i want to save it's state on form closing and then restore it on form loading. How can i make it?
1
3482
by: Thomas Qvist | last post by:
We are building a suite of programs consisting of both winforms applications and office addins. We would like to pre-generate the xml-serialization classes and add it to our project to avoid the overhead at startup and thus enhance the performance of our applications. The programs are coded in c# under .net 1.1.
1
4138
by: kurtrips | last post by:
I am trying to use M$'s XMLDOM's save method but it is doing absolutely nothing. xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.load("bestscores.xml"); xmlDoc.save('123.xml'); (The code is in Javascript.) I've tried relative paths/absolute paths/all sorts of permutations, but
5
1822
by: Dikkuuhh | last post by:
I must get a lot of information out of my database into a XMLDOM. The database part is done, all the information is in SQLDataReaders, but how can i convert all that information into a XMLDOM?? I must get it nice so i can load the information later.. Greetz Koen
14
3429
by: fdu.xiaojf | last post by:
Hi, I have a program which will continue to run for several days. When it is running, I can't do anything except waiting because it takes over most of the CUP time. Is it possible that the program can save all running data to a file when I want it to stop, and can reload the data and continue to run from where it stops when the computer...
2
5046
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I have the following code which I try to load an xml file, but in browser, I only get text value for each node, not whole xml string. I expect to see something like <name firstName="betty" lastName="Smith">I am at home</name> But I only see text "I am at home" did I do something wrong? Set xmlDom=CreateObject("Microsoft.XMLDOM") ...
0
2273
Ensonix
by: Ensonix | last post by:
I found a post about this, and it had some C# code that wouldn't convert, and when I finally got it converted it didn't work in .NET 1.1. So I made a few changes to the converted VB version and now it works perfect, however I could find a post replay on that form, so I thought I'd put it here for anyone else searching. 'ENSONIX ENTERPRISES,...
0
7894
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7825
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8191
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5700
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3816
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3841
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1431
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1155
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.