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

add a global cache to the toml parsing in loading and propagate that to precompile processes #37906

Merged
merged 1 commit into from
Oct 11, 2020

Conversation

KristofferC
Copy link
Sponsor Member

@KristofferC KristofferC commented Oct 6, 2020

Fixes #37782

The TOMLCache thing has been kinda annoying. It was supposed to be this internal thing but now Pkg and Revise use it and Revise even has some code for invalidating it. It seems kinda silly that a bunch of packages have to deal with it so I propose we just implement a global cache for it here in Base.

This also propagates the cache to workers so they do not have to reparse them over and over fixing #37632. It is still not at #37632 level where we want to send over the actual paths but it is one step towards it.

This will break Revise and Pkg.precompile.

Copy link
Sponsor Member

@timholy timholy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! FYI these PRs never merged:

Basically because I knew that this PR is what we actually wanted.

base/loading.jl Outdated Show resolved Hide resolved
@KristofferC KristofferC force-pushed the kc/propagate_toml_workers branch 4 times, most recently from 736c469 to 8393ec6 Compare October 7, 2020 06:22
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.

Code loading parses TOML files too many times
2 participants