I'm playing with utilizing the Source Generator approach in the Json Serializer in order to optimize performance of informers. Benefits of this approach:  See these two docs: - https://devblogs.microsoft.com/dotnet/try-the-new-system-text-json-source-generator/ - https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/source-generation Unfortunately, I've hit a snag due to the existing Json converters being internal.  Options: 1. Make existing converters public 2. Add Source Generation to this library 1. It appears fairly simple to implement 2. KubernetesJson.AddJsonOptions(x => x.TypeInfoResolver = JsonTypeInfoResolver.Combine(SourceGenerationContext.Default, JsonSerializerOptions.Default.TypeInfoResolver)); [JsonSerializable(typeof(V1Node))] [JsonSerializable(typeof(V1Namespace))] .. add all other types internal partial class SourceGenerationContext : JsonSerializerContext { } Thoughts? ```[tasklist] ### Tasks - [ ] https://github.com/kubernetes-client/csharp/pull/1417 ```
Activity
tg123 commentedon May 28, 2023
it is so cool, it is worth to have those converters public
tg123 commentedon Jan 14, 2024
merge into #1395