|
|
|
|
|
by kbarros
484 days ago
|
|
> We've had test code that goes from taking 10 minutes to run to over 2 hours because of type instability in a single line of code. For those who might not be familiar, tooling can sometimes help a lot here. The ProfileView.jl package (or just calling the @profview macro in VSCode) will show an interactive flamegraph. Type instabilities are highlighted in red and memory allocations are highlighted in yellow. This will help to identify the exact line where the type instability or allocation occurs. Also, to prevent regressions, I really like using the JET.jl static analysis package in my unit tests. |
|