My application has a bad performance while running on the 64bit computer as 64bit application. And I found the reason is that the WCF serialization of contract took most of the time. The serialization and de-serialization's performance is
worse than running as 32bit application on the 64bit computer.
I wrote a demo to record the consuming time of serialization and de-serialization of contract. The application running as 64Bit took about twice time than running as 32Bit application. I don't know why the performance of WCF serialization of
contract is so much different between 32Bit application and 64bit application. Has anyone encountered this issue?
the part of demo code:
public static void Read(DataContractSerializer serializera, MemoryStream stream,string description,int time)
stream.Position = 0;
using (XmlDictionaryReader reader =
watch = Stopwatch.StartNew();
View Complete Post