473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Storing XmlSerializers

We have an application that uses XmlSerialization to facilitate having
Sql server return large object graphs with just a single stored
procedure call. It works very nicely except for 1 small problem.

Given the *large* number of objects that we're dealing with, all those
pesky "new XmlSerializer(..." calls are really taking some time. We
currently cache the returned serializers, so subsequent reads are
quite reasonable. But, when first reading from the database, it takes
quite a while.

What I'd like to do is have another chunk of code that creates
serializers for all the relevant classes, and somehow stores the
generated assembly so that it can be loaded at runtime from the main
app. (I'm not worried about these getting out of sync with the
objects, I can solve that problem). Then, I'd wrap the whole can of
worms with a nice simple call to something like...

XmlSerializer GetSerializer( Type type );

So, how can I store the generated XmlSerializers and reference them
later?

If I can't do that, do you have any performance suggestions?

I'm really not looking forward to redesigning the data layer!
Nov 12 '05 #1
0 1072

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

Similar topics

3
by: Mark | last post by:
I have a website with an increasing amount of articles and news reports and so I am thinking of moving away from storing each article as a seperate page to having a single page and storing articles...
5
by: Don Vaillancourt | last post by:
I'm building a system when one can upload a document to the website. I will be storing the document on the hard-drive for quick/easy access, but I was also thinking of storing it in an existing...
0
by: Scott Williams | last post by:
We have an application that uses XmlSerialization to facilitate having Sql server return large object graphs with just a single stored procedure call. It works very nicely except for 1 small...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
0
by: Oleg.Ogurok | last post by:
Hi there, I have a small console app that makes a call to XML Webservices. The app runs from a login script. Because of the web service call, it takes about 15-20 seconds for the app to...
2
by: Mythran | last post by:
We followed an example found on MSDN to create an encrypted FormsAuthenticationTicket and storing the ticket in a cookie. Is this the "correct" way to store the authentication ticket? We are...
0
by: Martin Horst | last post by:
Hi, I've got an Windows Service which is communicating with another server using webservices. Everything worked fine but know when I try to create a referenz of the webservice class I get a file...
6
by: =?Utf-8?B?QW5kcmV3X2QxMjM=?= | last post by:
Here is my problem. I have an app that has over 9 web services. For years I had not issues with clickonce but now it looks like the build is missing XmlSerializers.dll.deploy. I did have this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.