dcae8e220da5637527d79ffbdf2b1b5e4d3cdf75
MoveToContentAsync is often called in states where it will immediately return true without any reading. In this case return AsyncUtils.True avoiding allocation or async state-machine. DoReadAsync is a very heavily hit method, and can often be fulfilled without creating another state machine, so do this. The remaining looping async case is the only use of ParsePostValueAsync, so inline it into the calling method, so there is one less task allocation. Return value of EatWhitespaceAsync is never used, returning void reduces the number of locals an hence the size of the state-machine. Do the same for EatWhitespace though the impact is less.
Description
Json.NET 是一种适用于 .NET 的常用高性能 JSON 框架
https://github.com/JamesNK/Newtonsoft.Json.git
27 MiB
Languages
C#
99.3%
PowerShell
0.7%