Skip to content
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

V14: Migrate nucache to use System.Text.Json #15685

Merged
merged 17 commits into from Feb 14, 2024

Conversation

nikolajlauridsen
Copy link
Contributor

Migrates NuCache to use System.Text.Json instead of Newtonsoft.Json.

There were quite a few performance optimizations around this area, some of which I've reimplemented, however, some do not seem possible for System.Text.Json, so I've skipped these, it should still be fine though since it's recommended to use messagepack anyways.

Testing

On V14/dev, configure the solution to use JSON for NuCache:

"NuCache": {
  "NuCacheSerializerType": "JSON"
},

Create some content on V14/dev, preferably something fairly complex, and render it on the frontend
Switch over to this branch and ensure that the content still loads from the cache and renders.

Copy link
Member

@elit0451 elit0451 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work and great findings 💪

@nikolajlauridsen nikolajlauridsen merged commit 2dcdff5 into v14/dev Feb 14, 2024
15 checks passed
@nikolajlauridsen nikolajlauridsen deleted the v14/feature/use-system-text-for-nucache branch February 14, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants