Skip to content

Commit 54b8855

Browse files
Merge pull request #181 from timholy/teh/precompiletools
Migrate from SnoopPrecompile to PrecompileTools
2 parents 615d895 + fd8923d commit 54b8855

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
1515
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
1616
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
1717
SimpleNonlinearSolve = "727e6d20-b764-4bd8-a329-72de5adea6c7"
18-
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
18+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1919
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2020
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
2121
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
@@ -32,7 +32,7 @@ RecursiveArrayTools = "2"
3232
Reexport = "0.2, 1"
3333
SciMLBase = "1.73"
3434
SimpleNonlinearSolve = "0.1"
35-
SnoopPrecompile = "1"
35+
PrecompileTools = "1"
3636
SparseDiffTools = "1, 2"
3737
StaticArraysCore = "1.4"
3838
UnPack = "1.0"

src/NonlinearSolve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ include("trustRegion.jl")
3939
include("levenberg.jl")
4040
include("ad.jl")
4141

42-
import SnoopPrecompile
42+
import PrecompileTools
4343

44-
SnoopPrecompile.@precompile_all_calls begin for T in (Float32, Float64)
44+
PrecompileTools.@compile_workload begin for T in (Float32, Float64)
4545
prob = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))
4646

4747
precompile_algs = if VERSION >= v"1.7"

0 commit comments

Comments
 (0)