Skip to content

Commit

Permalink
Update contrib/generate_precompile.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
  • Loading branch information
giordano and IanButterworth authored Oct 18, 2024
1 parent 3a5393c commit fcd1f96
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ for match = Base._methods(+, (Int, Int), -1, Base.get_world_counter())
write(IOBuffer(), "")
# Not critical, but helps hide unrelated compilation from @time when using --trace-compile.
# Do not call `rand` which can cause bad caching on some platforms: #56177.
f55729() = ones(2, 2) * ones(2, 2)
@time f55729()
@time f55729()
f55729() = Base.Experimental.@force_compile
@time @eval f55729()
@time @eval f55729()
break # only actually need to do this once
end
Expand Down

0 comments on commit fcd1f96

Please sign in to comment.