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
{{ message }}
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
The julia code in this repo is not type stable, which causes more than 10x slow down.
Whenever the type is not stable, Julia can not compile efficient code for you.
For example, using global variables like this would cause type instability.
The julia code in this repo is not type stable, which causes more than 10x slow down.
Whenever the type is not stable, Julia can not compile efficient code for you.
For example, using global variables like this would cause type instability.
ADBench/tools/Julia/gmm_F.jl
Line 58 in 6c25250
To avoid type instability, one should
const
keyword.Type instability can be seen by typing
@code_warntype f(x)
.For more information, see performance tips
https://docs.julialang.org/en/v1/manual/performance-tips/
Also, please take a look at this package for benchmark.
https://github.com/JuliaCI/BenchmarkTools.jl
Fixing this issue will definitely make the benchmark in your paper more reliable.
The text was updated successfully, but these errors were encountered: