Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Pkg as a dependency #184

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

fredrikekre
Copy link
Contributor

In recent Julia versions Pkg is not in the sysimage and therefore it can not be loaded "for free". Pkg was only used to conditionally activate the documentation environment in LiveServer.servedocs so the loss of functionality is basically non-existent -- it is easy enough to configure the package environment before calling LiveServer.servedocs.

Timings for loading LiveServer on Julia 1.12:

julia> @time using LiveServer # this PR
  0.448249 seconds

julia> @time using LiveServer # master
  0.743163 seconds

In recent Julia versions Pkg is not in the sysimage and therefore it can
not be loaded "for free". Pkg was only used to conditionally activate
the documentation environment in `LiveServer.servedocs` so the loss of
functionality is basically non-existent -- it is easy enough to
configure the package environment before calling `LiveServer.servedocs`.

Timings for loading LiveServer on Julia 1.12:
```
julia> @time using LiveServer # this PR
  0.448249 seconds

julia> @time using LiveServer # master
  0.743163 seconds
```
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