Performance regression in profile parser #2353
Labels
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
p1
This is a high priority issue
Describe the bug
I have an AWS config file with 1,000+ profiles (generated from a just-in-time access tool). The latest version of the SDK cannot parse this file in a reasonable amount of time (I've never actually waited long enough for it to finish). This has not been a problem in previous versions of the SDK.
Expected Behavior
aws.LoadDefaultConfig(context.Background())
to return in less than 10 seconds.Here's a benchmark run against
github.com/aws/aws-sdk-go-v2/[email protected]
Current Behavior
aws.LoadDefaultConfig(context.Background())
takes over a minute.Here's a benchmark run against
github.com/aws/aws-sdk-go-v2/[email protected]
Reproduction Steps
You can run the following benchmarks against the latest packages to see the performance. I have pasted 2 different runs in the behaviors section.
bench_test.go:
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.22.1
Environment details (Version of Go (
go version
)? OS name and version, etc.)1.20
The text was updated successfully, but these errors were encountered: