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

Which is the default http method for an action method?

511


How can you return string result from Action in ASP.Net MVC?

563


What is the use of the default route {resource}.axd/{*pathinfo} ?

561


Explain the new features added in version 4 of mvc (mvc4)?

547


In razor syntax, what is the escape sequence character for @ symbol?

564






What is mvc entity framework?

530


What is entity framework in asp net?

541


Explain how you can implement Ajax in MVC?

551


Can I set the unlimited length for "maxjsonlength" property in config?

566


What type of filter does outputcacheattribute class represents?

682


What is latest version of .net framework?

674


Describe the gac in the .net framework.

581


Which are the important namespaces used in ASP.Net MVC?

601


Explain Bundle.Config in ASP.Net MVC4?

573


How we can call a javascript function on the change of a dropdown list in mvc?

577