I’m profiling a function using the vscode-julia @profview
macro. When I do this some lines in the function are flagged as dynamic dispatch which I have a hard time believing, since according to @code_warntype
the arguments to the flagged function calls have known types. Then I read this line in the documentation:
There are some heuristics for special flags like garbage collection, dynamic dispatch, and more
Does “heuristic” here mean that the occurrence of dynamic dispatch is merely guessed, not definitely determined? How much can I rely on the gc and dispatch flags in the vscode profiler viewer?