4 ms·
Yeah, it should be in a static property/field or a singleton. Seen measurable improvements based on fixing this. System.Text.Json really has many unnecessary pi
by AtNightWeCode 4y ago
Yeah, it should be in a static property/field or a singleton. Seen measurable improvements based on fixing this. System.Text.Json really has many unnecessary pitfalls. Maybe they should have fixed the memory problems with Newtonsoft instead. A much more practical lib.
Edit: With that said, in most apps JSON speed is very not important. Never seen it consumed more than couple of percent of execution time for APIs since .NET 1.1.
- jayd16 4y agoNewtonsoft isn't AOT friendly though. That's why they went with both.
- AtNightWeCode 4y agoAOT? I really don't understand why they made the transition to System.Text.Json impossible for most projects.