You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allocates differently in terminal and VSCode: (julia 1.9.3, julia-vscode v1.52.2, MacOS & ubuntu)
using BenchmarkTools
function warn_f(x)
@warn "Warning" maxlog=1
end
function foo(x)
warn_f(x)
x
end
foo(3) # prints warning
@btime foo(3)
# 6.492 μs (41 allocations: 5.66 KiB) in VSCode
# 48.283 ns (0 allocations: 0 bytes) in terminal