Skip to content

Commit

Permalink
Merge pull request #44 from timholy/teh/precompiletools
Browse files Browse the repository at this point in the history
Migrate from SnoopPrecompile to PrecompileTools
  • Loading branch information
jbytecode authored Apr 25, 2023
2 parents 00012a7 + 92e400e commit 1d644ff
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 @@ -12,7 +12,7 @@ HiGHS = "87dc4568-4c63-4d18-b0c0-bb2238e4078b"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"

[compat]
Expand All @@ -23,7 +23,7 @@ Distributions = "0.17, 0.18, 0.19.1, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25"
HiGHS = "0.1, 0.2, 0.3, 1"
JuMP = "0.19, 0.20, 0.21, 0.22, 0.23, 1"
Requires = "1"
SnoopPrecompile = "1"
PrecompileTools = "1"
StatsModels = "0.4, 0.5, 0.6"
julia = "1.4"

Expand Down
6 changes: 3 additions & 3 deletions src/precompile/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using SnoopPrecompile
using PrecompileTools

@precompile_setup begin
@setup_workload begin

reg = createRegressionSetting(@formula(calls ~ year), phones)

@precompile_all_calls begin
@compile_workload begin
ols(reg)
asm2000(reg)
atkinson94(reg)
Expand Down

0 comments on commit 1d644ff

Please sign in to comment.