Microsoft .NET JSON serializer could get faster startup

Technique.Text.Json, a JSON serialization library in Microsoft’s .Net progress platform, could increase C# source code generation in an future iteration. The modify is built to improve performance.

Ideas call for utilization of new C# source generator abilities to support the built-in serializer in the pursuing strategies:

  • Increase startup and runtime throughput
  • Cut down non-public bytes utilization
  • Cut down application size
  • Increase IL (Intermediate Language) Linker friendliness by keeping away from runtime reflection

Endeavours to use C# source generation in Technique.Text.Json ended up in a prototype stage as of mid-December. Microsoft envisions their coming to fruition in .Net 6., due in November of this year.

The System.Text.Json library converts .Net item types to a JSON string and vice versa. It supports UTF-8 textual content encoding and was introduced in .Net Main three.. A style in the library, JsonSeralizer, purports to have the highest level of performance for processing JSON details.

In the new .Net 5, produced in November, Technique.Text.Json received advancements in performance and dependability, producing the library less difficult to undertake for developers common with the Newtonsoft.Json framework.

Other strategies in the offing for Technique.Text.Json include things like:

Copyright © 2021 IDG Communications, Inc.

Rosa G. Rose

Next Post

2 common cloud computing predictions for 2021 are wrong

Sat Jan 9 , 2021
For some motive I’m on the listing of each individual PR organization with a shopper that needs to have its predictions for the approaching year read. Generally their guesses are evident and unhelpful, this kind of as “cloud computing will continue to grow” or “cloud stability will continue to be […]