-
Notifications
You must be signed in to change notification settings - Fork 154
Two minor patches #1366
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
Two minor patches #1366
Conversation
Just to meke it easier to find. Signed-off-by: Colin Walters <[email protected]>
Minor optimization for previous commit. Signed-off-by: Colin Walters <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request includes a comment update in bootc.spec and an optimization in ostree-ext/src/tar/export.rs to reduce redundant calls to read_commit. The changes are well-contained and improve performance.
| fn write_parents_of( | ||
| &mut self, | ||
| path: &Utf8Path, | ||
| root: &gio::File, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| self.write_parents_of(parent, cache)?; | ||
| self.write_parents_of(parent, root, cache)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let root = writer | ||
| .repo | ||
| .read_commit(&writer.commit_checksum, gio::Cancellable::NONE)? | ||
| .0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build-sys: Add a link to rpm-ostree issue
Just to meke it easier to find.
Signed-off-by: Colin Walters [email protected]
tar/export: Only load root once
Minor optimization for previous commit.