From 9ee620a5ff59b6425e8a0b845d266eb2a98291ee Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Mon, 24 Apr 2023 17:12:27 -0500 Subject: [PATCH] Migrate from SnoopPrecompile to PrecompileTools --- Project.toml | 4 ++-- src/precompile.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 0d157cc..cdb6748 100644 --- a/Project.toml +++ b/Project.toml @@ -8,7 +8,7 @@ CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597" CPUSummary = "2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9" PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d" Requires = "ae029012-a4dd-5104-9daa-d747884805df" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d" Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" @@ -19,7 +19,7 @@ CategoricalArrays = "0.9, 0.10" CPUSummary = "0.1" PrettyTables = "2" Requires = "1" -SnoopPrecompile = "1" +PrecompileTools = "1" StatsBase = "0.29, 0.30, 0.31, 0.32, 0.33" StatsModels = "0.6, 0.7" Tables = "1" diff --git a/src/precompile.jl b/src/precompile.jl index 6a0774c..a7a697c 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -1,6 +1,6 @@ -import SnoopPrecompile +import PrecompileTools -SnoopPrecompile.@precompile_all_calls begin +PrecompileTools.@compile_workload begin sdfromcv(0.4) varfromcv(0.4) cvfromvar(0.4)