Skip to content

Commit

Permalink
Merge pull request #152 from timholy/teh/precompiletools
Browse files Browse the repository at this point in the history
Migrate from SnoopPrecompile to PrecompileTools
  • Loading branch information
BeastyBlacksmith authored Apr 25, 2023
2 parents a9125fb + 54c8804 commit 9d267fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
SnoopPrecompile = "1"
PrecompileTools = "1"
ColorSchemes = "3.19"
Colors = "0.12"
Reexport = "1"
Expand Down
4 changes: 2 additions & 2 deletions src/PlotUtils.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module PlotUtils

using SnoopPrecompile
using PrecompileTools
using ColorSchemes
using Reexport
using Printf
Expand Down Expand Up @@ -39,7 +39,7 @@ include("ticks.jl")
const _default_colorscheme = generate_colorscheme()

if VERSION v"1.8.0"
@precompile_all_calls begin
@compile_workload begin
for T in (Int, Float64)
optimize_ticks(-one(T), one(T))
optimize_ticks(-one(T), one(T); k_min = 2, k_max = 10)
Expand Down

0 comments on commit 9d267fe

Please sign in to comment.