From fd8923dc470dcb62f5d2e946c506a4dbd5e8fef8 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 24 Apr 2023 17:10:52 -0500 Subject: [PATCH] Migrate from SnoopPrecompile to PrecompileTools --- Project.toml | 4 ++-- src/NonlinearSolve.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index fc769a074..a079b38ca 100644 --- a/Project.toml +++ b/Project.toml @@ -15,7 +15,7 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" SimpleNonlinearSolve = "727e6d20-b764-4bd8-a329-72de5adea6c7" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804" StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c" @@ -32,7 +32,7 @@ RecursiveArrayTools = "2" Reexport = "0.2, 1" SciMLBase = "1.73" SimpleNonlinearSolve = "0.1" -SnoopPrecompile = "1" +PrecompileTools = "1" SparseDiffTools = "1, 2" StaticArraysCore = "1.4" UnPack = "1.0" diff --git a/src/NonlinearSolve.jl b/src/NonlinearSolve.jl index d6b538059..a83660705 100644 --- a/src/NonlinearSolve.jl +++ b/src/NonlinearSolve.jl @@ -39,9 +39,9 @@ include("trustRegion.jl") include("levenberg.jl") include("ad.jl") -import SnoopPrecompile +import PrecompileTools -SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64) +PrecompileTools.@compile_workload begin for T in (Float32, Float64) prob = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2)) precompile_algs = if VERSION >= v"1.7"