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

formula: add global caching for declared_runtime_dependencies #16008

Merged

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Sep 15, 2023

This improves brew audit --except=installed --tap=homebrew/core times from ~45s (with #16007 applied) to ~30s.

This optimisation is not enabled for formulae with options as I'm not 100% confident caching would behave correctly here. Though that doesn't matter for Homebrew/core, and third-party taps typically are much smaller scale that brew audit is already quick.

@apainintheneck
Copy link
Contributor

I was thinking about doing this recently too though I never followed through with it. I think it's smart to avoid trying to cache them for formula with build options but as you already mention that's relatively rare and not used in core anyway.

I see a 10s improvement locally without the installed audit which rarely runs on CI. Good work!

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Great idea, well done @Bo98!

@MikeMcQuaid MikeMcQuaid merged commit 184efd9 into Homebrew:master Sep 15, 2023
24 checks passed
@Bo98 Bo98 deleted the declared_runtime_dependencies-perf branch September 15, 2023 11:15
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants