mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-28 15:02:28 +00:00
7a30982bf0
Today, trace.Printf and trace.Debugf format the message more than once: at least once for logging, and once for tracing. Some of that formatting can be expensive for large messages, causing CPU and RAM spikes due to transient allocations. So this patch makes those trace functions only format once, and avoid the logging calls if they're below the logging level.