阅读背景:

Json.NET是否缓存类型的序列化信息?

来源:互联网 

In .NET world, when it comes to object serialization, it usually goes into inspecting the object's fields and properties at runtime. Using reflection for this job is usually slow and is undesirable when dealing with large sets of objects. The other way is using IL emit or building expression trees that provide significant performance gain over reflection. And the latter is most modern libraries pick when dealing with serialization. However building and emitting IL at runtime takes time, and the investment is only paid back if this information is cached and reused for objects of the same type.In .NET world, when it comes to object serializ




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: