Skip to content

Commit

Permalink
use PrecompileTools instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Apr 28, 2023
1 parent 0b7afe8 commit 890ceeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ FastTransforms = "057dd010-8810-581a-b7be-e3fc3b93f78c"
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Expand All @@ -34,7 +34,6 @@ FillArrays = "0.11, 0.12, 0.13, 1"
IntervalSets = "0.5, 0.6, 0.7"
LazyArrays = "0.22, 1"
Reexport = "0.2, 1"
SnoopPrecompile = "1"
SpecialFunctions = "0.10, 1.0, 2"
Static = "0.8"
StaticArrays = "1"
Expand Down
6 changes: 3 additions & 3 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using SnoopPrecompile
using PrecompileTools

@precompile_setup begin
@setup_workload begin
splist = Any[Jacobi(1, 1), Chebyshev(), Ultraspherical(1)]
append!(splist, Any[Jacobi(1, 1, 0..1), Chebyshev(0..1), Ultraspherical(1, 0..1)])
spreal = copy(splist)
Expand All @@ -10,7 +10,7 @@ using SnoopPrecompile
v = ones(2)
m = ones(2,2)
a = ones(2,2,2)
@precompile_all_calls begin
@compile_workload begin
for S in splist
f = Fun(S,v)
f(0.1)
Expand Down

0 comments on commit 890ceeb

Please sign in to comment.