Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 70 forks source link

Add caching to `azure_cli` to optimize performance #595

Open roel4ez opened 1 year ago

roel4ez commented 1 year ago

Some calls to the azure_cli wrapper are being called multiple times, where the result can easily be cached. For example: get_default_subscription (see usage https://github.com/Azure/iotedgedev/blob/main/iotedgedev/cli.py#L665 where a local value is used to keep the result)