-
Notifications
You must be signed in to change notification settings - Fork 884
perf: Change serializer for XrefMap from NewtonsoftJson to System.Text.Json #9832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9832 +/- ##
==========================================
+ Coverage 74.31% 78.98% +4.66%
==========================================
Files 536 540 +4
Lines 23189 23372 +183
Branches 4056 4053 -3
==========================================
+ Hits 17234 18461 +1227
+ Misses 4853 3782 -1071
- Partials 1102 1129 +27 ☔ View full report in Codecov by Sentry. |
src/Docfx.Common/Json/System.Text.Json/SystemTextJsonUtility.cs
Outdated
Show resolved
Hide resolved
| Converters = | ||
| { | ||
| new JsonStringEnumConverter(), | ||
| new ObjectToInferredTypesConverter(), // Required for `Dictionary<string, object>` type deserialization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change Dictionary<string, object> Others -> Dictionary<string, JsonElement> Others if that is the only place using this converter?
chore: add json schema files and related tests Co-authored-by: Yufei Huang <yufeih@live.com>
…9860) Bumps [Microsoft.Playwright](https://github.com/microsoft/playwright-dotnet) from 1.42.0 to 1.43.0. - [Release notes](https://github.com/microsoft/playwright-dotnet/releases) - [Commits](microsoft/playwright-dotnet@v1.42.0...v1.43.0) --- updated-dependencies: - dependency-name: Microsoft.Playwright dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yufei Huang <yufeih@live.com>
fix: xrefmap baseurl problems
…t#9840) chore: add InternalVisibleTo attribute for benchmark project
|
I've failed to rebase to latest main branch with resolve conflicts.. For clear diffs for code review. I'll recreate this PR later.
|
This PR is successor of #9824.
Change XrefMap serializer from
Newtonsoft.JsontoSystem.Text.Jsonfor perf optimization.What's included in this PR
SystemTextJsonUtility.csand related converter for generic JSON serialization/deserialization.JsonUtility.cswrapper class in future (By Migrating toSystem.Text.Json#9727).(And existing
JsonUtility.cslogics will be moved toNewtonsoftJsonUtility.cs)XRefMapDownloader.cspublic sealedclass.UpdateHrefmethod.XRefMapRedirection.csHref attribute that introduced by perf: Optimize xrefmap.json file deserialization performance #9824.