In the weeds with logging micro optimization
Great code provides detailed logging output during development. Generating this output isn't free, that's why it's usually turned off. But even when inactive, the debug logging code will have a non zero performance impact. Let's explore a few ways this can be approached and optimized.