dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
3.94k stars 840 forks source link

[Feature Request] Support faster deserialization of `OneOf` based types #9973

Open filzrev opened 1 month ago

filzrev commented 1 month ago

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

Currently OneOfJsonConverter which is used for ApiPage deserialization is relatively slow. As described at this comment lines

And when it's running on following conditions. It's extremely run slower and can't debugging. Because a lot of internal exception recorded to Visual Studio's Output window.

Describe the solution you'd like I have no neat solution to this problem. It might need to write custom converter for available OneOf<> combinations.