loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.58k stars 644 forks source link

Use source generators to serialize JSON #700

Open loic-sharma opened 2 years ago

loic-sharma commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently BaGet uses System.Text.Json and reflection to serialize JSON.

Describe the solution you'd like

Try using System.Text.Json but with source generators: https://devblogs.microsoft.com/dotnet/try-the-new-system-text-json-source-generator/

This should improve startup time and performance.