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

Use System.Text.Json api for databases #1854

Merged
merged 1 commit into from
Oct 10, 2019
Merged

Conversation

Bond-009
Copy link
Member

@Bond-009 Bond-009 commented Oct 7, 2019

System.Text.Json and is faster in my tests than the current json serializer. Mostly because doesn't need to convert to UTF-16 and can operate directly on the ReadonlySpan<byte> returned by the SQlite wrapper.

@cvium
Copy link
Member

cvium commented Oct 8, 2019

Is the new serializer configurable per class? I remember there being a few instances of snake case.

@Bond-009
Copy link
Member Author

Bond-009 commented Oct 8, 2019

@cvium It is, take a look at the JsonSerializerOptions class

@JustAMan JustAMan merged commit 79f9887 into jellyfin:master Oct 10, 2019
@Bond-009 Bond-009 deleted the json branch October 10, 2019 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants