Why is XmlSerializer so slow

Answer Posted / kirti

There is a once-per-process-per-type overhead with XmlSerializer. So the first time you serialize or deserialize an object of a given type in an application, there is a significant delay. This normally doesn't matter, but it may mean, for example, that XmlSerializer is a poor choice for loading configuration settings during startup of a GUI application.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?

622


What is .net architecture and framework?

664


Explain test driven development (tdd) ?

649


What are actions in mvc?

652


What are the components required to create a route in mvc?

709






What is the use of action filters in an mvc application?

724


Explain the advantages of asp.net mvc over asp.net?

699


What is .net framework in simple terms?

634


What is the difference between adding routes, to a webforms application and to an mvc application?

636


Where is the new functionality in the .net framework 3.0 (such as wcf, wf, wpf, and cardspace) installed to? Is that different from where the .net framework 2.0 is installed to?

635


What filters are executed in the end?

679


Is mvc 4 supporting windows azure sdk (software development kit) ?

647


Do you know about the new features in ASP.Net MVC 4 ?

682


Explain the new features 3.5 framework against with the tool?

584


What is Attribute Routing in ASP.Net MVC?

682