Skip to content

Commit

Permalink
add precompile to speed up startup (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
songjhaha authored Oct 19, 2023
1 parent 9dc7264 commit 8ec802c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TyPython/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TyPython"
uuid = "9c4566a2-237d-4c69-9a5e-9d27b7d0881b"
authors = ["thautwarm <[email protected]>"]
version = "0.2.4"
version = "0.2.5"

[deps]
IOCapture = "b5f81e59-6552-4d32-b1f0-c071b021bf89"
Expand Down
4 changes: 3 additions & 1 deletion TyPython/src/CPython.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ include("CPython.APIs.jl")
include("CPython.Boot.jl")
include("CPython.ORM.jl")

const G_ATTR_SYM_MAP = Dict{Symbol, Py}()
const G_ATTR_SYM_MAP = Dict{Symbol,Py}()
const G_OB_POOL = Any[]

let ln = LineNumberNode((@__LINE__), Symbol(@__FILE__))
Expand All @@ -110,4 +110,6 @@ function __init__()
__init_julia_wrap__()
end

precompile(init, ())

end
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "julia-numpy"
version = "0.4.7"
version = "0.4.8"
description = "Writing Python C extensions in Julia within 5 minutes."
authors = ["thautwarm <[email protected]>"]
maintainers = ["songjhaha <[email protected]>"]
Expand Down

2 comments on commit 8ec802c

@songjhaha
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register subdir=TyPython

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

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 TyPython-v0.2.5 -m "<description of version>" 8ec802ca83474e5ad0820de356057a0210f6e96b
git push origin TyPython-v0.2.5

Please sign in to comment.