Skip to content

Commit

Permalink
Reduce the number of precompiled methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Feb 6, 2023
1 parent fa7f076 commit bef4601
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "VectorizedStatistics"
uuid = "3b853605-1c98-4422-8364-4bd93ee0529e"
authors = ["C. Brenhin Keller", "Chris Elrod"]
version = "0.5.1"
version = "0.5.2"

[deps]
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
Expand Down
19 changes: 16 additions & 3 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
@precompile_setup begin
maxdims = 3

@precompile_all_calls begin

for T in (Float64,Float32,Int)
for nd in 1:4
for T in (Float64,)
for nd in 1:maxdims
A = ones(T, ntuple(i->10, nd))
vsum(A)
vmean(A)
Expand All @@ -20,7 +21,7 @@
vminimum(A, dims=d)
vmaximum(A, dims=d)
end

if nd > 1
for i = 2:nd
for j = 1:i-1
Expand All @@ -36,5 +37,17 @@

end
end

for T in (Float64, Int)
for nd in 1:maxdims
A = ones(T, ntuple(i->10, nd))
vsum(A)
vmean(A)
vstd(A)
vvar(A)
vminimum(A)
vmaximum(A)
end
end
end
end

2 comments on commit bef4601

@brenhinkeller
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

  • Reduce the number of precompiled methods, to save space in .julia/compiled/ for users

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/77079

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.2 -m "<description of version>" bef4601fdf0fe76bf3f6ae2afb6179dbc90b3c41
git push origin v0.5.2

Please sign in to comment.