Skip to content

Commit bef4601

Browse files
committed
Reduce the number of precompiled methods
1 parent fa7f076 commit bef4601

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VectorizedStatistics"
22
uuid = "3b853605-1c98-4422-8364-4bd93ee0529e"
33
authors = ["C. Brenhin Keller", "Chris Elrod"]
4-
version = "0.5.1"
4+
version = "0.5.2"
55

66
[deps]
77
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"

src/precompile.jl

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
@precompile_setup begin
2+
maxdims = 3
23

34
@precompile_all_calls begin
45

5-
for T in (Float64,Float32,Int)
6-
for nd in 1:4
6+
for T in (Float64,)
7+
for nd in 1:maxdims
78
A = ones(T, ntuple(i->10, nd))
89
vsum(A)
910
vmean(A)
@@ -20,7 +21,7 @@
2021
vminimum(A, dims=d)
2122
vmaximum(A, dims=d)
2223
end
23-
24+
2425
if nd > 1
2526
for i = 2:nd
2627
for j = 1:i-1
@@ -36,5 +37,17 @@
3637

3738
end
3839
end
40+
41+
for T in (Float64, Int)
42+
for nd in 1:maxdims
43+
A = ones(T, ntuple(i->10, nd))
44+
vsum(A)
45+
vmean(A)
46+
vstd(A)
47+
vvar(A)
48+
vminimum(A)
49+
vmaximum(A)
50+
end
51+
end
3952
end
4053
end

0 commit comments

Comments
 (0)