Skip to content

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: 15 comments 30 replies

You must be logged in to vote
6 replies
@SMillerDev

@justdanyul

@gwerbin

@MikeMcQuaid

@MikeMcQuaid

You must be logged in to vote
2 replies
@gwerbin

@alebcay

alebcay Feb 22, 2023
Collaborator

Answer selected by xiruizhao

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
3 replies
@gwerbin

@StephenLeafWW

@gromgit

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
3 replies
@xiruizhao

@cxpreng

@gwerbin

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@gwerbin

You must be logged in to vote
2 replies
@SMillerDev

@cxpreng

You must be logged in to vote
3 replies
@gromgit

@stuaxo

@gromgit

You must be logged in to vote
10 replies
@Sarke

@p-linnane

@MikeMcQuaid

@Sarke

@MikeMcQuaid

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