diff --git a/Project.toml b/Project.toml index 9ec7dd4..d1db59c 100644 --- a/Project.toml +++ b/Project.toml @@ -10,7 +10,7 @@ DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" Requires = "ae029012-a4dd-5104-9daa-d747884805df" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" [weakdeps] @@ -31,7 +31,7 @@ Makie = "0.19" PlotlyJS = "0.18" Reexport = "1" Requires = "1.1" -SnoopPrecompile = "1" +PrecompileTools = "1" Spglib = "0.6" StaticArrays = "1.2" julia = "1.6" diff --git a/src/Brillouin.jl b/src/Brillouin.jl index 3624230..76e3347 100644 --- a/src/Brillouin.jl +++ b/src/Brillouin.jl @@ -50,7 +50,7 @@ include("WignerSeitz.jl") # ---------------------------------------------------------------------------------------- # # SNOOPPRECOMPILE -using SnoopPrecompile +using PrecompileTools include("precompile.jl") # ---------------------------------------------------------------------------------------- # diff --git a/src/precompile.jl b/src/precompile.jl index e9bb22b..cbf7ef4 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -1,4 +1,4 @@ -@precompile_setup begin +@setup_workload begin using Bravais: directbasis Rs2D_v = [(@SVector [1.0,0]), (@SVector [0,1.0])] @@ -6,7 +6,7 @@ Rs3D_v = [(@SVector [1.0,0,0]), (@SVector [0,1.0,0]), (@SVector [0,0,1.0])] Rs3D = directbasis(227, Val(3)) - @precompile_all_calls begin + @compile_workload begin function _precompile(sgnum, Rs, Dᵛ::Val{D}) where D kp = irrfbz_path(sgnum, Rs, Dᵛ) cartesianize(kp)