Skip to content

Commit

Permalink
Merge pull request #8 from sdobber/sd_precompile
Browse files Browse the repository at this point in the history
Add precompile statements
  • Loading branch information
sdobber authored Dec 28, 2022
2 parents 84e301b + 8707d9f commit d661783
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
matrix:
version:
- '1.6'
- '1.8'
- 'nightly'
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BallroomSkatingSystem"
uuid = "8aed41a2-23bd-4167-baf7-1f33f6c22702"
authors = ["Sören Dobberschütz <[email protected]> and contributors"]
version = "0.1.2"
version = "0.1.3"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down
2 changes: 2 additions & 0 deletions src/BallroomSkatingSystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ include("helper_functions.jl")
include("skating_single_dance.jl")
include("skating_combined.jl")

include("precompile.jl")

export skating_single_dance, skating_combined

end
9 changes: 9 additions & 0 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function _precompile_()
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
Base.precompile(Tuple{typeof(skating_single_dance),DataFrame}) # time: 0.4183177
Base.precompile(Tuple{typeof(write_result!),DataFrame,DataFrame,DataFrame,Int64,Int64,Int64,Int64,Int64}) # time: 0.0137808
Base.precompile(Tuple{typeof(skating_combined),Vector{String},Vector{DataFrame}}) # time: 0.5728937
Base.precompile(Tuple{typeof(write_places!),DataFrame,DataFrame,Vector{Int64},Float64,Int64}) # time: 0.003989675
end

_precompile_()

2 comments on commit d661783

@sdobber
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/74720

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.1.3 -m "<description of version>" d661783d99054640cc581f3d43404b2a94d3e7ad
git push origin v0.1.3

Please sign in to comment.