Skip to content

fix: make pgai --help faster #605

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

Merged
merged 1 commit into from
Apr 7, 2025
Merged

fix: make pgai --help faster #605

merged 1 commit into from
Apr 7, 2025

Conversation

jgpruitt
Copy link
Collaborator

@jgpruitt jgpruitt commented Apr 4, 2025

Running pgai --help or pgai install was taking >5s. That's long enough to assume something is broken and wonder if it will run.
Importing some packages on demand takes it down to 0.2s.

BEFORE
image

AFTER
image

Running `pgai --help` or `pgai install` was taking 6.5s.
Importing some packages on demand takes it down to 0.2s.
@jgpruitt jgpruitt self-assigned this Apr 4, 2025
@jgpruitt jgpruitt requested a review from a team as a code owner April 4, 2025 21:16
@jgpruitt jgpruitt temporarily deployed to internal-contributors April 4, 2025 21:16 — with GitHub Actions Inactive
@JamesGuthrie JamesGuthrie merged commit 00f1eb7 into main Apr 7, 2025
8 checks passed
@JamesGuthrie JamesGuthrie deleted the jgpruitt/help-speed branch April 7, 2025 09:52
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