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

[Merged by Bors] - fix: reduce imports for scripts #6716

Closed
wants to merge 5 commits into from

Conversation

digama0
Copy link
Member

@digama0 digama0 commented Aug 22, 2023

As noted on Zulip, a from-scratch build of mathlib after lake exe cache get will compile all of Std due to some unnecessary imports. With a few well chosen import reductions we only end up having to compile ~20 files instead of ~300 files (compile meaning Compiling, generating the arch-dependent .o files that are not in the cache).


Open in Gitpod

Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

bors d+

Thanks!

@bors
Copy link

bors bot commented Aug 22, 2023

✌️ digama0 can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

scripts/checkYaml.lean Outdated Show resolved Hide resolved
@digama0
Copy link
Member Author

digama0 commented Aug 24, 2023

bors r+

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Aug 24, 2023
bors bot pushed a commit that referenced this pull request Aug 24, 2023
As [noted on Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/lake.20exe.20cache.20get.20broken.3F/near/386489865), a from-scratch build of mathlib after `lake exe cache get` will compile all of `Std` due to some unnecessary imports. With a few well chosen import reductions we only end up having to compile ~20 files instead of ~300 files (compile meaning `Compiling`, generating the arch-dependent `.o` files that are not in the cache).
@bors
Copy link

bors bot commented Aug 24, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title fix: reduce imports for scripts [Merged by Bors] - fix: reduce imports for scripts Aug 24, 2023
@bors bors bot closed this Aug 24, 2023
@bors bors bot deleted the compile_imports branch August 24, 2023 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants