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

fix: improve perf when telemetry is disabled #546

Merged
merged 3 commits into from
Dec 7, 2023
Merged

Conversation

mdonnalley
Copy link
Contributor

Improve hook performance when telemetry is disabled

[skip-validate-pr]

@@ -38,6 +35,12 @@ const hook: Hook.Prerun = async function (options): Promise<void> {
}

try {
const path = await import('node:path');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perf: you can Promise.all these

@mdonnalley mdonnalley merged commit 09cb6ee into main Dec 7, 2023
10 checks passed
@mdonnalley mdonnalley deleted the mdonnalley/perf branch December 7, 2023 17:03
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