ed99856139057844e56b4be98d830b780fe87a67
With Null and Undefined BsonValue's, one such value is indistinguishable from another, so singletons can be used for them, reducing allocations. With BsonValue containing booleans as well as there being only so there's a similar advantage with the extra benefit that if there is only one true value then a reference-equals check can be used instead of unboxing to determine the value to write.
Description
Json.NET 是一种适用于 .NET 的常用高性能 JSON 框架
https://github.com/JamesNK/Newtonsoft.Json.git
27 MiB
Languages
C#
99.3%
PowerShell
0.7%