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
xs = [ GlobalRef(Main, :x), :(a.b), :+, GlobalRef(MLStyle, Symbol("@", :match)) ]
julia>f(x) =@match x beginGlobalRef(_, x) => x
:($_.$x) => x
_ =>nothingend
julia>@btime [f(x) for x in xs]
before:
julia>@btime [f(x) for x in xs]
442.929 ns (5 allocations:272 bytes)
4-element Vector{Union{Nothing, Symbol}}::x:bnothingSymbol("@match")
after
julia>@btime [f(x) for x in xs]
408.000 ns (5 allocations:272 bytes)
4-element Vector{Union{Nothing, Symbol}}::x:bnothingSymbol("@match")
Before:
After:
The text was updated successfully, but these errors were encountered: