RE: performance of xml serilisation
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 11 Jul 2006 12:02:08 GMT
Thanks for your quick response Scott,
Yes, you're right, after the first type the type specific dynamic
serialization assemblies are generated, they'll be cached and reused for
sequential serialization/deserialziation processing. As you can see the
"XmlSerializer" class's construct has a parameter of "System.Type" type,
this parameter is used for providing the class type we would like to
perform xml serialization/deserialization on. And another useage of this
parameter is that the .net runtime will use the type's FullName(maybe
assembly Qualified name) as the Key to cache it.
In addition, such serialization assemblies(dynamic generated and compiled)
are based .net AppDomain scope, that means each appdomain will has its own
dynamic assembly cache. As for ASP.NET application, each application is
associated with an AppDomain, that means whenever the application restart
for some reason, the cache is invalid also and the next time any xml
serialization/deserialization request on a certain type(after application
restarted) will result in new dynamic assembly generation.
Hope this also helps. Please feel free to let me know if there is still
anything we can help.
Regards,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- RE: performance of xml serilisation
- From: Steven Cheng[MSFT]
- RE: performance of xml serilisation
- References:
- RE: performance of xml serilisation
- From: Steven Cheng[MSFT]
- RE: performance of xml serilisation
- From: scottrm
- RE: performance of xml serilisation
- Prev by Date: RE: performance of xml serilisation
- Next by Date: RE: refresh performance in datagrid - big problem
- Previous by thread: RE: performance of xml serilisation
- Next by thread: RE: performance of xml serilisation
- Index(es):
Relevant Pages
|