Skip to content

Feature request: Improve cold start by optimizing imports in Powertools utilities #5820

@ran-isenberg

Description

@ran-isenberg

Use case

Hey,
In order to improve cold start, we are often told not to import an entire library (especially if it's large) such as 'import X' but instead import specific classes, like: 'from X import Y'.

I've noticed that some utilities dont follows this best practice:
for example

Solution/User Experience

For example: change 'import boto3' to 'from boto3 import client'

Alternative solutions

Acknowledgment

Metadata

Metadata

Labels

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions