A New JsonSerializerOptions Every Call Cost Me 120x
DEV Community
A New JsonSerializerOptions Every Call Cost Me 120x
A tiny endpoint was allocating like crazy. The culprit was a fresh JsonSerializerOptions built inside the handler on every request. Here's the measured cost and the one-line fix.
0 comments
No comments yet.