A (performance) quirk with JsonSerializer #47
Replies: 1 comment 1 reply
-
|
I want to say, it's quite logical to re-use an instance of JsonSerializerOptions, isn't it? ^^ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A (performance) quirk with JsonSerializer
System.Text.Json.JsonSerializer has a weird quirk in regard to performance and memory management. So we will discuss what is "wrong" with this code: JsonSerializer.Serialize(myObject, new JsonSerializerOptions(...));.
https://steven-giesel.com/blogPost/0e7512b0-c854-4cce-8606-765fcaf1e69c
Beta Was this translation helpful? Give feedback.
All reactions