Skip to content

Why is Homebrew so slow? #1177

Apr 2, 2021 · 13 comments · 16 replies
Discussion options

You must be logged in to vote

Would using POSIX-compliant dash (preinstalled on macOS) improve performance?

My guess would be probably not. brew list may be slower than it could be due to how some of the logic is overloaded - it's not used just for listing installed items, but also can filter by formulae only, casks only, unbrewed formulae, versions of a particular formula, pinned formulae only, etc.

Interestingly, from the numbers above, the CPU time for brew shows that System time makes up the majority of User time, while pip shows a System time that is about a third that of the User time.

You can find the code that drives brew list here. If you have a proposal on how to make the brew list command run faster, plea…

Replies: 13 comments 16 replies

Comment options

You must be logged in to vote
5 replies
@xiruizhao
Comment options

@SMillerDev
Comment options

@justdanyul
Comment options

@gwerbin
Comment options

@MikeMcQuaid
Comment options

Comment options

You must be logged in to vote
2 replies
@gwerbin
Comment options

@alebcay
Comment options

Answer selected by xiruizhao
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@gwerbin
Comment options

@StephenLeafWW
Comment options

@gromgit
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@xiruizhao
Comment options

@cxpreng
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gwerbin
Comment options

Comment options

You must be logged in to vote
2 replies
@SMillerDev
Comment options

@cxpreng
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment