XmlSerializer startup HUGE performance loss on 64bit systems

前端 未结 4 1220
长发绾君心
长发绾君心 2020-12-03 01:17

I am experiencing a really HUGE performance loss while calling a simple XmlSerializer.Deserizlize() on a class with lots of fields.

NOTE

4条回答
  •  渐次进展
    2020-12-03 02:00

    Microsoft has known about this since the release of the 64 bit .NET:

    http://connect.microsoft.com/VisualStudio/feedback/details/508748/memory-consumption-alot-higher-on-x64-for-xslcompiledtransform-transform-then-on-x86

    From MSFT: "the x64 JIT compiler has a few algorithms that are quadratically scaling. ... it's been something that we've seen a number of times since the 64 bit framework first released in 2005." and

    "This issue is a) known, and b) not really trivial to address. It's a design issue with the 64 bit JIT. We're in the early stages of replacing our 64-bit JIT implementation, so it will eventually get address, but not in the CLR 4.0 timeframe, unfortunately."

提交回复
热议问题