Skip to content

Commit

Permalink
Migrate from SnoopPrecompile to PrecompileTools (#2152)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored Apr 25, 2023
1 parent 04ca1f1 commit 45a7b1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MutableArithmetics = "d8a4904e-b15c-11e9-3269-09a3773c0cb0"
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand All @@ -31,7 +31,7 @@ JSONSchema = "1"
MutableArithmetics = "1"
NaNMath = "0.3, 1"
OrderedCollections = "1"
SnoopPrecompile = "1"
PrecompileTools = "1"
SpecialFunctions = "0.8, 1, 2"
julia = "1.6"

Expand Down
6 changes: 3 additions & 3 deletions src/MathOptInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ we provide this `MOI.IndexMap` as an alias.
"""
const IndexMap = Utilities.IndexMap

import SnoopPrecompile
import PrecompileTools

SnoopPrecompile.@precompile_setup begin
SnoopPrecompile.@precompile_all_calls begin
PrecompileTools.@setup_workload begin
PrecompileTools.@compile_workload begin
let
optimizer =
() -> Utilities.MockOptimizer(
Expand Down

0 comments on commit 45a7b1c

Please sign in to comment.