Statically imports @aws-sdk/credential-provider-node so that no additional time is spent on Lambda for dynamically importing the provider during request time.
Testing
The unit tests and integration tests are successful.
We benchmarked @aws-sdk/client-dynamodb@v3.556.0 (latest version at the time of PR) listTables operation for 100 counts before and after the change. In this sample benchmark, the request time at p50 is reduced by ~40ms or 4.3% with no change in init_duration.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Issue
Internal JS-5156
Description
Statically imports
@aws-sdk/credential-provider-node
so that no additional time is spent on Lambda for dynamically importing the provider during request time.Testing
The unit tests and integration tests are successful.
We benchmarked
@aws-sdk/client-dynamodb@v3.556.0
(latest version at the time of PR) listTables operation for 100 counts before and after the change. In this sample benchmark, the request time at p50 is reduced by ~40ms or 4.3% with no change in init_duration.Before
After
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.