Skip to content

Commit

Permalink
Merge pull request #335 from timholy/teh/precompiletools
Browse files Browse the repository at this point in the history
Migrate from SnoopPrecompile to PrecompileTools
  • Loading branch information
ConnectedSystems committed Apr 27, 2023
2 parents 8b57e32 + 5d7a83e commit 8d2adb9
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 @@ -42,7 +42,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
RelocatableFolders = "05181044-ff0b-4ac5-8273-598c1e38db00"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
SparseArrayKit = "a9a3c162-d163-4c15-8926-b8794fbefed2"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Expand Down Expand Up @@ -85,7 +85,7 @@ ProgressMeter = "1"
RelocatableFolders = "1"
SciMLBase = "1"
Setfield = "0.8, 1"
SnoopPrecompile = "1"
PrecompileTools = "1"
SparseArrayKit = "0.2"
StaticArrays = "1"
StatsBase = "0.33"
Expand Down
6 changes: 3 additions & 3 deletions src/ADRIA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import GeoDataFrames

using ProgressMeter

using SnoopPrecompile, RelocatableFolders
using PrecompileTools, RelocatableFolders


include("utils/text_display.jl") # need better name for this file
Expand Down Expand Up @@ -95,13 +95,13 @@ if ccall(:jl_generating_output, Cint, ()) == 1
end


@precompile_setup begin
@setup_workload begin
# Putting some things in `setup` can reduce the size of the
# precompile file and potentially make loading faster.
ADRIA_DIR = pkgdir(ADRIA)
EXAMPLE_DOMAIN_PATH = joinpath(ADRIA_DIR, "examples", "Example_domain")

@precompile_all_calls begin
@compile_workload begin

f() = begin
@showprogress 1 for _ in 1:10
Expand Down

0 comments on commit 8d2adb9

Please sign in to comment.