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

elide precompilation in Profile.jl #49613

Merged
merged 1 commit into from
May 3, 2023

Conversation

sjkelly
Copy link
Contributor

@sjkelly sjkelly commented May 3, 2023

This saves about 2ms on my system by checking
the precompilation state. This also reorganizes the remaining precompilation calls in the module.

@sjkelly sjkelly requested a review from KristofferC May 3, 2023 13:56
This saves about 2ms on my system by checking
the precompilation state. This also reorganizes the remaining
precompilation calls in the module.
@sjkelly sjkelly force-pushed the sjk/profile_precomp1 branch from 8e4065a to 3d8c07d Compare May 3, 2023 16:55
@KristofferC
Copy link
Member

This saves about 2ms on my system by checking the precompilation state.

When does it save 2 ms?

@KristofferC KristofferC merged commit 4bb3a55 into JuliaLang:master May 3, 2023
@sjkelly
Copy link
Contributor Author

sjkelly commented May 3, 2023

Yes I wasn't clear. This is at load, using Profile.

@KristofferC
Copy link
Member

I don't understand how this could make a difference at that point. This code doesn't run when you import it. It would matter if you run Julia with --compiled-modules=no.

@sjkelly
Copy link
Contributor Author

sjkelly commented May 3, 2023

I suppose I don't understand. Maybe it was noise.
This file is included here:

include("precompile.jl")

@KristofferC
Copy link
Member

Yes, but that only runs at precompile 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.

2 participants