diff --git a/Project.toml b/Project.toml index 464978361..f1f94a834 100644 --- a/Project.toml +++ b/Project.toml @@ -13,12 +13,12 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a" Missings = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28" PooledArrays = "2dfb63ee-cc39-5dd5-95bd-886bf059d720" +PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d" Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" -SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c" SortingAlgorithms = "a2af1166-a08f-5f64-846c-94a0d3cef48c" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" TableTraits = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c" @@ -35,11 +35,11 @@ InvertedIndices = "1.3" IteratorInterfaceExtensions = "0.1.1, 1" Missings = "0.4.2, 1" PooledArrays = "1.4.2" +PrecompileTools = "1" PrettyTables = "2.1" Reexport = "0.1, 0.2, 1" SentinelArrays = "1.2" ShiftedArrays = "1, 2" -SnoopPrecompile = "1" SortingAlgorithms = "0.1, 0.2, 0.3, 1" TableTraits = "0.4, 1" Tables = "1.9.0" diff --git a/src/DataFrames.jl b/src/DataFrames.jl index d32ffe99b..a4ae6d926 100644 --- a/src/DataFrames.jl +++ b/src/DataFrames.jl @@ -10,7 +10,7 @@ using Markdown using PrettyTables using Random using Tables: ByRow -import SnoopPrecompile +import PrecompileTools import SentinelArrays import InlineStrings diff --git a/src/other/precompile.jl b/src/other/precompile.jl index c8584adc8..bbdeb070f 100644 --- a/src/other/precompile.jl +++ b/src/other/precompile.jl @@ -1,6 +1,6 @@ -import SnoopPrecompile +import PrecompileTools -SnoopPrecompile.@precompile_all_calls begin +PrecompileTools.@compile_workload begin df = DataFrame(a=[2, 5, 3, 1, 0], b=["a", "b", "c", "a", "b"], c=1:5, p=PooledArray(["a", "b", "c", "a", "b"]), q=[true, false, true, false, true],