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
I'm doing some work improving compile times for a number of packages and noticed that InlineStrings keep popping up as a large source of invalidations. I'm not sure how large of a problem this is in practice, but I figured I'll mention it in case you have an easy fix for it
julia>show(trees[end-1])
inserting String(x::T) where T<:InlineStrings.InlineStringin InlineStrings at /home/fredrikb/.julia/packages/InlineStrings/aWvyB/src/InlineStrings.jl:114 invalidated:
backedges:1: superseding String(s::AbstractString) in Base at strings/string.jl:82 with MethodInstance forString(::AbstractString) (512 children)
25 mt_cache
false
julia>show(trees[end-2])
inserting string(a::Union{Char, SubString{String}, String}, b::Union{Char, SubString{String}, String}, c::InlineStrings.InlineString) in InlineStrings at /home/fredrikb/.julia/packages/InlineStrings/aWvyB/src/InlineStrings.jl:400 invalidated:
backedges:1: superseding string(xs...) in Base at strings/io.jl:185 with MethodInstance forstring(::Char, ::Vararg{Any}) (1 children)
2: superseding string(xs...) in Base at strings/io.jl:185 with MethodInstance forstring(::Any, ::Char, ::Any) (9 children)
3: superseding string(xs...) in Base at strings/io.jl:185 with MethodInstance forstring(::Any, ::String, ::Any) (12 children)
4: superseding string(xs...) in Base at strings/io.jl:185 with MethodInstance forstring(::String, ::String, ::Any) (50 children)
5: superseding string(xs...) in Base at strings/io.jl:185 with MethodInstance forstring(::String, ::Vararg{Any}) (360 children)
3 mt_cache
false
The code I ran to get the data was
using SnoopCompile
invalidations =@snooprbeginusing ControlSystems
end;
trees = SnoopCompile.invalidation_trees(invalidations);
The text was updated successfully, but these errors were encountered:
I'm doing some work improving compile times for a number of packages and noticed that InlineStrings keep popping up as a large source of invalidations. I'm not sure how large of a problem this is in practice, but I figured I'll mention it in case you have an easy fix for it
The code I ran to get the data was
The text was updated successfully, but these errors were encountered: