by mikepurvis · 3y ago · 0 comments
I'd be more worried about cases where you're calling some function to produce a novel value that will then be included in the log string— and Python doesn't have lazy argument evaluation so you'll pay the cost of that function call regardless.
Basically, if you're worried about string formatting overhead, it's probably time to ditch Python.