Skip to content

Commit

Permalink
Migrate from SnoopPrecompile to PrecompileTools (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored Apr 25, 2023
1 parent faea35f commit 7988daf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ version = "0.17.20"
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[compat]
Aqua = "0.6"
ArrayLayouts = "1"
Documenter = "0.27"
FillArrays = "1"
SnoopPrecompile = "1"
PrecompileTools = "1"
julia = "1.6"

[extras]
Expand Down
6 changes: 3 additions & 3 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using SnoopPrecompile
using PrecompileTools

@precompile_setup begin
@setup_workload begin
vs = ([1.0], Float32[1.0], ComplexF32[1.0], ComplexF64[1.0])
Bs = Any[BandedMatrix(0 => v) for v in vs]
@precompile_all_calls begin
@compile_workload begin
for B in Bs, op in (+, -, *)
op(B, B)
end
Expand Down

0 comments on commit 7988daf

Please sign in to comment.