Click here to Skip to main content
15,880,469 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataContractSerializer objects conversion performace improvement Pin
Ravi Bhavnani28-Feb-14 8:14
professionalRavi Bhavnani28-Feb-14 8:14 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
impeham28-Feb-14 10:07
impeham28-Feb-14 10:07 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
Ravi Bhavnani28-Feb-14 10:13
professionalRavi Bhavnani28-Feb-14 10:13 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
impeham28-Feb-14 10:16
impeham28-Feb-14 10:16 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
impeham2-Mar-14 5:07
impeham2-Mar-14 5:07 
AnswerRe: DataContractSerializer objects conversion performace improvement Pin
Ravi Bhavnani2-Mar-14 5:15
professionalRavi Bhavnani2-Mar-14 5:15 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
impeham3-Mar-14 0:51
impeham3-Mar-14 0:51 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
Ravi Bhavnani3-Mar-14 2:10
professionalRavi Bhavnani3-Mar-14 2:10 
If you have a generalized object graph and a need to map any type of object to any other type, I would like to suggest that you revisit your design.  Object mapping is mostly used when converting DTOs to business objects, and frameworks like Automapper and Fasterflect prove to be very convenient (and fast) in these cases.

If you choose to go with your existing design, you may want to consider XmlSerializer which caches serializers for different types, causing a one-time performance hit on first convert.  But this is also not as performant as simple mapping.

Cheers,

/ravi
My new year resolution: 2048 x 1536
Home | Articles | My .NET bits | Freeware
ravib(at)ravib(dot)com

GeneralRe: DataContractSerializer objects conversion performace improvement Pin
impeham3-Mar-14 2:42
impeham3-Mar-14 2:42 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
Ravi Bhavnani3-Mar-14 2:46
professionalRavi Bhavnani3-Mar-14 2:46 
GeneralRe: DataContractSerializer objects conversion performace improvement Pin
impeham5-Mar-14 1:49
impeham5-Mar-14 1:49 
Questionhow to call web api passing multiple parameters in c# Pin
rincy sivan27-Feb-14 0:37
rincy sivan27-Feb-14 0:37 
QuestionRe: how to call web api passing multiple parameters in c# Pin
Richard MacCutchan27-Feb-14 1:31
mveRichard MacCutchan27-Feb-14 1:31 
AnswerRe: how to call web api passing multiple parameters in c# Pin
rincy sivan27-Feb-14 18:36
rincy sivan27-Feb-14 18:36 
GeneralRe: how to call web api passing multiple parameters in c# Pin
Richard MacCutchan27-Feb-14 22:03
mveRichard MacCutchan27-Feb-14 22:03 
QuestionCreate Rsa Signature Pin
upmnemam26-Feb-14 21:50
upmnemam26-Feb-14 21:50 
AnswerRe: Create Rsa Signature Pin
Hessam Jalali1-Mar-14 11:02
Hessam Jalali1-Mar-14 11:02 
QuestionSQL Server project Pin
Lifefor Rent26-Feb-14 19:36
Lifefor Rent26-Feb-14 19:36 
AnswerRe: SQL Server project Pin
OriginalGriff26-Feb-14 20:52
mveOriginalGriff26-Feb-14 20:52 
AnswerRe: SQL Server project Pin
ScottM127-Feb-14 20:53
ScottM127-Feb-14 20:53 
QuestionSystem.Argument Exception Pin
TheJudeDude26-Feb-14 10:26
TheJudeDude26-Feb-14 10:26 
AnswerRe: System.Argument Exception Pin
OriginalGriff26-Feb-14 10:36
mveOriginalGriff26-Feb-14 10:36 
GeneralRe: System.Argument Exception Pin
TheJudeDude26-Feb-14 10:46
TheJudeDude26-Feb-14 10:46 
GeneralRe: System.Argument Exception Pin
phil.o27-Feb-14 0:00
professionalphil.o27-Feb-14 0:00 
QuestionRe: System.Argument Exception Pin
Richard Deeming26-Feb-14 11:25
mveRichard Deeming26-Feb-14 11:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.