Skip to content

Commit

Permalink
Merge pull request #6 from timholy/teh/precompiletools
Browse files Browse the repository at this point in the history
Migrate from SnoopPrecompile to PrecompileTools
  • Loading branch information
Liozou authored Apr 25, 2023
2 parents 8b09b39 + fce0aa6 commit d520aea
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 @@ -6,11 +6,11 @@ version = "0.9.6"
[deps]
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
Graphs = "1.3"
SnoopPrecompile = "1"
PrecompileTools = "1"
StaticArrays = "0.12, 1.0"
julia = "1.6"
6 changes: 3 additions & 3 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using PeriodicGraphs, LinearAlgebra, Graphs, StaticArrays
using SnoopPrecompile
using PrecompileTools

@static if VERSION < v"1.7-"
Returns(a) = (_ -> a)
Expand Down Expand Up @@ -68,8 +68,8 @@ macro _precompile_g(N, str)
return ret
end

@precompile_setup begin
@precompile_all_calls begin
@setup_workload begin
@compile_workload begin
@_precompile_g 0 "0 1 2 1 3 1 4 2 3 3 4"
@_precompile_g 1 "1 1 2 1 1 3 0 1 4 0 2 3 0 3 4 -1"
@_precompile_g 2 "2 1 2 1 0 1 3 0 0 1 4 0 0 2 3 0 0 3 4 -1 0"
Expand Down

0 comments on commit d520aea

Please sign in to comment.