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

Merged
merged 3 commits into from
Oct 22, 2024
Merged

Remove Pkg as a dependency #184

merged 3 commits into from
Oct 22, 2024

Conversation

fredrikekre
Copy link
Member

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
```
@fredrikekre
Copy link
Member Author

Bump!

@tlienart
Copy link
Collaborator

thanks a lot @fredrikekre ; will merge & release

would you be interested in becoming a contributor for this repo since I'm unfortunately not doing a great job at the moment, it'd definitely help to have someone else who can merge and release stuff 😄

@tlienart tlienart merged commit 65b8cdb into JuliaDocs:master Oct 22, 2024
3 checks passed
@fredrikekre fredrikekre deleted the fe/Pkg branch October 22, 2024 19:45
@fredrikekre
Copy link
Member Author

Sure! If you want to transfer it somewhere it could perhaps live in the JuliaDocs organization?

@tlienart
Copy link
Collaborator

tlienart commented Oct 22, 2024

added you as collaborator, happy to transfer this repo to JuliaDocs 👍 will open an issue there to get appropriate rights do you know how I can get access to that org to make the transfer?

@fredrikekre
Copy link
Member Author

I invited you to JuliaDocs, you should be able to transfer once you join the org.

@tlienart
Copy link
Collaborator

All done, thanks 😀

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.

2 participants