Skip to content

Commit 45a7b1c

Browse files
authored
Migrate from SnoopPrecompile to PrecompileTools (#2152)
1 parent 04ca1f1 commit 45a7b1c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MutableArithmetics = "d8a4904e-b15c-11e9-3269-09a3773c0cb0"
1414
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
1515
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
1616
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
17-
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
17+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1818
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1919
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2020
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
@@ -31,7 +31,7 @@ JSONSchema = "1"
3131
MutableArithmetics = "1"
3232
NaNMath = "0.3, 1"
3333
OrderedCollections = "1"
34-
SnoopPrecompile = "1"
34+
PrecompileTools = "1"
3535
SpecialFunctions = "0.8, 1, 2"
3636
julia = "1.6"
3737

src/MathOptInterface.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ we provide this `MOI.IndexMap` as an alias.
271271
"""
272272
const IndexMap = Utilities.IndexMap
273273

274-
import SnoopPrecompile
274+
import PrecompileTools
275275

276-
SnoopPrecompile.@precompile_setup begin
277-
SnoopPrecompile.@precompile_all_calls begin
276+
PrecompileTools.@setup_workload begin
277+
PrecompileTools.@compile_workload begin
278278
let
279279
optimizer =
280280
() -> Utilities.MockOptimizer(

0 commit comments

Comments
 (0)