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

System.Text.Json for JsonProvider? #1498

Closed
Thorium opened this issue Nov 22, 2023 · 1 comment
Closed

System.Text.Json for JsonProvider? #1498

Thorium opened this issue Nov 22, 2023 · 1 comment

Comments

@Thorium
Copy link
Member

Thorium commented Nov 22, 2023

Hi,

I created a package of https://github.com/Thorium/FSharp.Data.JsonProvider.Serializer
(and Nuget https://www.nuget.org/packages/FSharp.Data.JsonProvider.Serializer)

...which you can use to speed-up your current FSharp.Data Json Serialization.

This will keep existing JSON domain model and everything as is, just provide alternative "from text" and "to text" options, with burden of extra dependency to System.Text.Json. We don't want that probably for all TPs, that's why the dependency is reverse here: This package uses FSharp.Data and not the other way.

If you want the source-code can be transferred under FSharp.Data repository. (Source code is tiny, it's just about transfering the FSharp.Data.JsonProvider DOM to System.Text.Json DOM and vice versa.

More conversation an motivations pondered at this issue #1478

@Thorium
Copy link
Member Author

Thorium commented Nov 29, 2023

Even though the serialization speed is 50% faster that way, we are talking about around 0.1s so the raw FSharp.Data is good enough on most scenarios.

@Thorium Thorium closed this as completed Nov 29, 2023
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

No branches or pull requests

1 participant