Sasha's blog
Sign in Subscribe

string-formatting

A collection of 1 post
performance

Using pre-compiled message templates in ILogger

I saw a Rider suggestion not long ago to use pre-compiled message templates with ILogger methods. Something like the following: Message template should be compile time constant It turns out message templates are a thing. It sounded interesting, so I got curious to check what the performance would look like
02 Oct 2022 2 min read
Page 1 of 1
Sasha's blog © 2025
Powered by Ghost