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

slow startup time #41

Open
gabrielsroka opened this issue May 6, 2024 · 2 comments
Open

slow startup time #41

gabrielsroka opened this issue May 6, 2024 · 2 comments

Comments

@gabrielsroka
Copy link
Contributor

gabrielsroka commented May 6, 2024

possibly due to verifying code signatures.

in a new shell:

Measure-Command {Get-OktaConfiguration}

Seconds           : 11

i removed the code signatures and it starts right away.

maybe combine the 760+ files into 1 (or 4, 1 per directory), so it has fewer signatures to verify.

'Api', 'Model', 'Client', 'Private' | Get-ChildItem -Path {
Join-Path $PSScriptRoot $_
} -Filter '*.ps1' | ForEach-Object {
Write-Debug "Importing file: $($_.BaseName)"
try {
. $_.FullName
} catch {
Write-Error -Message "Failed to import function $($_.Fullname): $_"
}
}

@laura-rodriguez
Copy link
Collaborator

Hi @gabrielsroka,

Thanks for reporting this issue. We'll keep an eye out of it and prioritize accordingly.

@gabrielsroka
Copy link
Contributor Author

i updated to 1.0.2. it's 12-13 seconds now

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

No branches or pull requests

2 participants