Skip to content

Load CondaPkg lazily, and drop Pkg as a dependency#752

Open
JamesWrigley wants to merge 2 commits intoJuliaPy:mainfrom
JamesWrigley:condapkg
Open

Load CondaPkg lazily, and drop Pkg as a dependency#752
JamesWrigley wants to merge 2 commits intoJuliaPy:mainfrom
JamesWrigley:condapkg

Conversation

@JamesWrigley
Copy link
Contributor

Combined, these reduce the load time with JULIA_PYTHONCALL_EXE set from ~1.3s to ~0.3s on my machine.

Note that removing Pkg as a dependency could be breaking if packages are depending on accessing Pkg in the juliacall module. But, only Main is documented as being available so it is technically ok to remove it in a nonbreaking release: https://juliapy.github.io/PythonCall.jl/stable/juliacall-reference/#Constants

This shaves ~0.5s off the load time if `JULIA_PYTHONCALL_EXE` is set.
This removes ~0.4s from the load time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant