Repository navigation
[Merged by Bors] - fix(Cache): do not read lake-manifest.json at import-time - #11492
Closed
eric-wieser wants to merge 2 commits into
Closed
eric-wieser wants to merge 2 commits into
eric-wieser wants to merge 2 commits into
Conversation
Previously this file was read four times at runtime, and once for each file at compiletime. Now it is read only at startup.
1 task done
Contributor
|
bors merge |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Mar 19, 2024
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when `lake exe cache` is run. `initialize` is not a substitute for correctly passing global state through a program; my impression is that it is intended for *language-* rather than program-level initialization. The performance impact is negligible, but the new code is more predictable. Tested on mathlib, and on a package created using `lake new foo math`, pointed at this mathlib branch. `lake exe cache get` works correctly (leaves `lake build` with nothing to do) in both cases.
Contributor
|
Pull request successfully merged into master. Build succeeded: |
dagurtomas
pushed a commit
that referenced
this pull request
Mar 22, 2024
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when `lake exe cache` is run. `initialize` is not a substitute for correctly passing global state through a program; my impression is that it is intended for *language-* rather than program-level initialization. The performance impact is negligible, but the new code is more predictable. Tested on mathlib, and on a package created using `lake new foo math`, pointed at this mathlib branch. `lake exe cache get` works correctly (leaves `lake build` with nothing to do) in both cases.
utensil
pushed a commit
that referenced
this pull request
Mar 26, 2024
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when `lake exe cache` is run. `initialize` is not a substitute for correctly passing global state through a program; my impression is that it is intended for *language-* rather than program-level initialization. The performance impact is negligible, but the new code is more predictable. Tested on mathlib, and on a package created using `lake new foo math`, pointed at this mathlib branch. `lake exe cache get` works correctly (leaves `lake build` with nothing to do) in both cases.
xgenereux
pushed a commit
that referenced
this pull request
Apr 15, 2024
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when `lake exe cache` is run. `initialize` is not a substitute for correctly passing global state through a program; my impression is that it is intended for *language-* rather than program-level initialization. The performance impact is negligible, but the new code is more predictable. Tested on mathlib, and on a package created using `lake new foo math`, pointed at this mathlib branch. `lake exe cache get` works correctly (leaves `lake build` with nothing to do) in both cases.
atarnoam
pushed a commit
that referenced
this pull request
Apr 16, 2024
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when `lake exe cache` is run. `initialize` is not a substitute for correctly passing global state through a program; my impression is that it is intended for *language-* rather than program-level initialization. The performance impact is negligible, but the new code is more predictable. Tested on mathlib, and on a package created using `lake new foo math`, pointed at this mathlib branch. `lake exe cache get` works correctly (leaves `lake build` with nothing to do) in both cases.
uniwuni
pushed a commit
that referenced
this pull request
Apr 19, 2024
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when `lake exe cache` is run. `initialize` is not a substitute for correctly passing global state through a program; my impression is that it is intended for *language-* rather than program-level initialization. The performance impact is negligible, but the new code is more predictable. Tested on mathlib, and on a package created using `lake new foo math`, pointed at this mathlib branch. `lake exe cache get` works correctly (leaves `lake build` with nothing to do) in both cases.
callesonne
pushed a commit
that referenced
this pull request
Apr 22, 2024
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when `lake exe cache` is run. `initialize` is not a substitute for correctly passing global state through a program; my impression is that it is intended for *language-* rather than program-level initialization. The performance impact is negligible, but the new code is more predictable. Tested on mathlib, and on a package created using `lake new foo math`, pointed at this mathlib branch. `lake exe cache get` works correctly (leaves `lake build` with nothing to do) in both cases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously this file was read four times at runtime, and once for each file at compile time. Now it is read only once, when
lake exe cacheis run.initializeis not a substitute for correctly passing global state through a program; my impression is that it is intended for language- rather than program-level initialization.The performance impact is negligible, but the new code is more predictable.
Tested on mathlib, and on a package created using
lake new foo math, pointed at this mathlib branch.lake exe cache getworks correctly (leaveslake buildwith nothing to do) in both cases.