Skip to content

Commit 890ceeb

Browse files
committed
use PrecompileTools instead
1 parent 0b7afe8 commit 890ceeb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ FastTransforms = "057dd010-8810-581a-b7be-e3fc3b93f78c"
1313
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
1414
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
1515
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
16+
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1617
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
17-
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
1818
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1919
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
2020
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
@@ -34,7 +34,6 @@ FillArrays = "0.11, 0.12, 0.13, 1"
3434
IntervalSets = "0.5, 0.6, 0.7"
3535
LazyArrays = "0.22, 1"
3636
Reexport = "0.2, 1"
37-
SnoopPrecompile = "1"
3837
SpecialFunctions = "0.10, 1.0, 2"
3938
Static = "0.8"
4039
StaticArrays = "1"

src/precompile.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using SnoopPrecompile
1+
using PrecompileTools
22

3-
@precompile_setup begin
3+
@setup_workload begin
44
splist = Any[Jacobi(1, 1), Chebyshev(), Ultraspherical(1)]
55
append!(splist, Any[Jacobi(1, 1, 0..1), Chebyshev(0..1), Ultraspherical(1, 0..1)])
66
spreal = copy(splist)
@@ -10,7 +10,7 @@ using SnoopPrecompile
1010
v = ones(2)
1111
m = ones(2,2)
1212
a = ones(2,2,2)
13-
@precompile_all_calls begin
13+
@compile_workload begin
1414
for S in splist
1515
f = Fun(S,v)
1616
f(0.1)

0 commit comments

Comments
 (0)