dotnet / Docker.DotNet

:whale: .NET (C#) Client Library for Docker API
https://www.nuget.org/packages/Docker.DotNet/
MIT License
2.23k stars 381 forks source link

Migrate from Newtonsoft.Json to System.Text.Json #672

Open 0xced opened 6 months ago

0xced commented 6 months ago

Everything is now truly async, no more fake Task.Factory.StartNew async.

0xced commented 6 months ago

Also, in commit 6a87013e18ed0f02c9e296a53f1707e538e4780c I improved all the HTTP requests to deserialize the JSON payload directly from the HTTP response stream instead of reading the response as string then deserializing to model objects. This is an improvement in both speed and memory allocations.