Closed jlchan closed 1 year ago
I'm not really sure why assertions sometimes are flagged as non-inferred by @code_warntype
, but I believe this is completely harmless and doesn't impact performance. But I can provide a workaround for this if it helps.
In any case, I really think this is not what is causing the type instability that you're seeing in jlchan/StartUpDG.jl#87, since the return type of vtk_save
(Vector{String}
) is correctly inferred.
Thanks for maintaining this package!
I ran into a type instability in
vtk_save
recently when working with an unstructured grid data type. Here is a MWE:The output of
@code_warntype
isAny idea if this can be made type stable?