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.
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.