diff --git a/Project.toml b/Project.toml index f4bd5fbeb..42c539532 100644 --- a/Project.toml +++ b/Project.toml @@ -10,7 +10,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Requires = "ae029012-a4dd-5104-9daa-d747884805df" RewriteTools = "5969e224-3634-4c61-9f66-721b69e98b8a" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" SyntaxInterface = "b33eeca9-aacb-4496-a840-e75f1646a4fb" [weakdeps] @@ -24,7 +24,7 @@ Compat = "3.29, 4" DataStructures = "0.18" Requires = "1" RewriteTools = "0.1" -SnoopPrecompile = "1" +PrecompileTools = "1" SyntaxInterface = "0.2.1" julia = "1.6.7" diff --git a/src/Finch.jl b/src/Finch.jl index 05879146d..ba266d911 100644 --- a/src/Finch.jl +++ b/src/Finch.jl @@ -10,7 +10,7 @@ using RewriteTools.Rewriters using Base.Iterators using Base: @kwdef using Random: randsubseq, AbstractRNG, default_rng -using SnoopPrecompile +using PrecompileTools using Compat using DataStructures @@ -118,10 +118,10 @@ include("base/fsparse.jl") end end -@precompile_setup begin +@setup_workload begin # Putting some things in `setup` can reduce the size of the # precompile file and potentially make loading faster. - @precompile_all_calls begin + @compile_workload begin # all calls in this block will be precompiled, regardless of whether # they belong to your package or not (on Julia 1.8 and higher) y = @fiber d(e(0.0))