≈ the.bay.news

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

Sign in to join the discussion — your thebay.events account works here.

No comments yet.