Skip to content

Proposal: Improve general performance #179

@wickenico

Description

@wickenico

ℹ️ Initiative from #173.

About performance improvements:

  • There are still many items that can be cached

    • Currently only brew info is cached
    • brew list --cask, brew list --formula --versions, brew leaves, etc. can also be cached
  • brew update, brew outdated caching

    • This requires discussion on caching strategy
    • e.g., Only fetch if cache data is older than 15 minutes, otherwise use cache. Or don't cache at all
  • Call logic optimization

    • There are still duplicate calls and sequential executions that could be optimized
    • Also, rendering as each call completes could improve user experience (I haven't checked the code, but it seems like everything renders at once after all queries finish)
  • Call latency

    • The "too slow" issue in Toooo Sloooow! #157 might be related to brew command call latency
    • I also experienced call latency while working on this PR, which prevented me from doing a more accurate analysis (this is why I mistakenly thought brew formulae was slow)
    • I haven't identified the root cause yet
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions