Skip to content

osc-sdk-python initialization overhead #93

@pitouche

Description

@pitouche

Hello,

I noticed, when dealing with a huge number of account, that the initialization phase of the Gateway object is very slow.

When benchmarking the call to:

osc_api_client = Gateway(access_key=creddict["AccessId"], secret_key=creddict["SecretKey"], region=creddict["ComputeRegion"]

It takes arround 230ms to initialize.

Since i am dealing with a set of 3000 accounts, this overhead lead to a total of 750 Seconds only for the object initialization.

I have benched also some other libs (boto3.client) this init phase is arround 50ms which is somehow huge also, but 5 times less.

Why is this initialization time so huge ? Is there a way to reduce this overhead ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions