Open rfourquet opened 2 months ago
Caused by #53584.
Number of allocations seems to grow with the number of calls to @debug
.
julia> using Logging; f() = with_logger(NullLogger()) do
for i=1:100
@debug "f"
end
end
julia> @allocations f(); @allocations f()
206 # is 0 on v1.10
This is a regression from v1.10, but OK to close if considered normal.
NullLogger()
was useful to make logging macros essentially free when not used. A workaround is to useLogging.disable_logging(Logging.Debug)
.