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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some inference failures in Base.require call graph #44628

Merged
merged 4 commits into from
Mar 16, 2022

Conversation

timholy
Copy link
Sponsor Member

@timholy timholy commented Mar 15, 2022

I found another package, RoundingIntegers.jl, that invalidates Base.require, which is particularly bad to invalidate since it has to be recompiled before loading the next package; if it happens repeatedly it can substantially slow loading. I finally decided to just go through the JET report on Base.require and fix most of the things that I could fix that weren't already being handled in #44500.

I am not certain whether the change to make_aliases (always returning a Vector{SimpleVector}) is wise, but the tests pass so 馃し.

@timholy timholy added the compiler:latency Compiler latency label Mar 15, 2022
base/cmd.jl Outdated Show resolved Hide resolved
base/loading.jl Outdated Show resolved Hide resolved
base/deprecated.jl Outdated Show resolved Hide resolved
base/cmd.jl Outdated Show resolved Hide resolved
@timholy
Copy link
Sponsor Member Author

timholy commented Mar 16, 2022

Thanks @aviatesk!

Freebsd and Linux32 seem stuck, but everything else passes so I will just merge.

@timholy timholy merged commit cc60657 into master Mar 16, 2022
@timholy timholy deleted the teh/fix_require_vulnerabilities branch March 16, 2022 10:37
KristofferC pushed a commit that referenced this pull request Apr 20, 2022
Discovered via JET. This also causes `make_aliases` to always return a `Vector{SimpleVector}` as its first argument.

Co-authored-by: Shuhei Kadowaki <[email protected]>
Co-authored-by: Jameson Nash <[email protected]>
Co-authored-by: Kristoffer Carlsson <[email protected]>
(cherry picked from commit cc60657)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:latency Compiler latency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants