How to get PyCall.jlwrap types for precompilation of packages
- Dominant language
- Julia
- Stars
- 1.5k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
Hello PyCall community,
I am using PyJulia to execute some Julia code I have written to do math. I hope to reduce my code latency by precompiling the Julia code. This was not working, so I dug into what was happening and I have discerned that PyJulia is calling my Julia code with types resembling:
`PyCall.jlwrap Float64` and `PyCall.jlwrap Int64` etc.
This is fine, all I need to do is precompile my Julia code with these types. However, I can't figure out how to import these types in Julia to do the precompilation!
Is there a way to bring these types into scope purely within Julia source, so that I can achieve precompilation?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing PyCall.jl and the PyJulia call path described in the issue, then consult Julia's package precompilation behavior for PyCall.jlwrap Float64 and Int64. Done means establishing whether these wrapper types can be brought into Julia source scope and documenting the supported precompilation approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, python
- Domain
- build-system
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100