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

perf: make ape --help faster #2011

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Conversation

antazoey
Copy link
Member

How I did it

  • cache is_installed instead of checking multiple times
  • don't call github available plugins during --help as it is not used and is a waste of internet

The performance gains I saw were close to twice as fast when doing ape --help... still feels slow but is better.

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey merged commit 4776fb1 into ApeWorX:main Apr 16, 2024
15 checks passed
@antazoey antazoey deleted the perf/pluginloading branch April 16, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants