Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
SnoopPrecompile = "66db9d55-30c0-4569-8b51-7e840670fc0c"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
SuiteSparse = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9"
Expand All @@ -17,7 +17,7 @@ SuiteSparse = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9"
ArrayInterface = "7"
Compat = "4"
IfElse = "0.1"
SnoopPrecompile = "1"
PrecompileTools = "1"
Static = "0.8"
Requires = "1"
julia = "1.6"
Expand Down
6 changes: 3 additions & 3 deletions src/StaticArrayInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -492,12 +492,12 @@ end

## Precompilation

using SnoopPrecompile
@precompile_setup begin
using PrecompileTools
@setup_workload begin
# Putting some things in `setup` can reduce the size of the
# precompile file and potentially make loading faster.
arrays = [rand(4), Base.oneto(5)]
@precompile_all_calls begin for x in arrays
@compile_workload begin for x in arrays
known_first(x)
known_step(x)
known_last(x)
Expand Down