Parametric type signature in methods, any actual difference?

There are a few cases in which the type parameter triggers a heuristic that tells Julia to specialize on the argument when it might not otherwise: https://docs.julialang.org/en/v1/manual/performance-tips/#Be-aware-of-when-Julia-avoids-specializing (doesn’t matter for Vector though).

3 Likes