What s new in NET 8 microsoft.com - get the latest breaking news, showbiz & celebrity photos, sport news & rumours, viral videos and top stories from microsoft.com Daily Mail and Mail on Sunday newspapers.
Microsoft .NET JSON serialiser could get faster start-up
Improved throughput and reduced application size are also on the drawing board for the System.Text.Json serialiser Credit: Dreamstime
System.Text.Json, a JSON serialisation library in Microsoft’s .NET development platform, could add C# source code generation in an upcoming iteration. The change is designed to improve performance.
Plans call for utilisation of new C# source generator capabilities to help the built-in serialiser in the following ways:
Improve start-up and runtime throughput
Reduce private bytes usage
Improve IL (Intermediate Language) Linker friendliness by avoiding runtime reflection
Efforts to utilise C# source generation in System.Text.Json were in a prototype stage as of mid-December. Microsoft envisions their coming to fruition in .NET 6.0, due in November of this year.