diff --git a/Project.toml b/Project.toml index 8e0e06f..668bb83 100644 --- a/Project.toml +++ b/Project.toml @@ -6,11 +6,11 @@ version = "0.9.6" [deps] Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" [compat] Graphs = "1.3" -SnoopPrecompile = "1" +PrecompileTools = "1" StaticArrays = "0.12, 1.0" julia = "1.6" diff --git a/src/precompile.jl b/src/precompile.jl index e125b5e..d1fe0e0 100755 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -1,5 +1,5 @@ using PeriodicGraphs, LinearAlgebra, Graphs, StaticArrays -using SnoopPrecompile +using PrecompileTools @static if VERSION < v"1.7-" Returns(a) = (_ -> a) @@ -68,8 +68,8 @@ macro _precompile_g(N, str) return ret end -@precompile_setup begin - @precompile_all_calls begin +@setup_workload begin + @compile_workload begin @_precompile_g 0 "0 1 2 1 3 1 4 2 3 3 4" @_precompile_g 1 "1 1 2 1 1 3 0 1 4 0 2 3 0 3 4 -1" @_precompile_g 2 "2 1 2 1 0 1 3 0 0 1 4 0 0 2 3 0 0 3 4 -1 0"