Skip to content

Commit

Permalink
Reduce number of precompiled methods to reduce cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Sep 12, 2023
1 parent c66fc41 commit 7353628
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "NaNStatistics"
uuid = "b946abbf-3ea7-4610-9019-9858bfdeaf2d"
authors = ["C. Brenhin Keller"]
version = "0.6.31"
version = "0.6.32"

[deps]
IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173"
Expand Down
24 changes: 12 additions & 12 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@setup_workload begin

MAXDIMS = 3
maxdims = 2

R = rand(10000)
x = [1:100..., 1]
Expand All @@ -21,7 +21,7 @@
# nanpctile(Y, 50, dims=2)

for T in (Float64,)
for nd in 1:MAXDIMS
for nd in 1:maxdims
A = ones(T, ntuple(i->10, nd))
nansum(A)
nanmean(A)
Expand All @@ -44,16 +44,16 @@
nanmaximum(A, dims=d)
end

for i = 2:nd
for j = 1:i-1
# nansum(A, dims=(j,i))
nanmean(A, dims=(j,i))
# nanstd(A, dims=(j,i))
# nanvar(A, dims=(j,i))
# nanminimum(A, dims=(j,i))
# nanmaximum(A, dims=(j,i))
end
end
# for i = 2:nd
# for j = 1:i-1
# nansum(A, dims=(j,i))
# nanmean(A, dims=(j,i))
# nanstd(A, dims=(j,i))
# nanvar(A, dims=(j,i))
# nanminimum(A, dims=(j,i))
# nanmaximum(A, dims=(j,i))
# end
# end
end

end
Expand Down

2 comments on commit 7353628

@brenhinkeller
Copy link
Owner Author

Choose a reason for hiding this comment

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

@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/96556

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

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.6.32 -m "<description of version>" 7353628c6e1800ce51a9adf83f8d4932fb5ea83e
git push origin v0.6.32

Please sign in to comment.