sonic-buildimage/src/sonic-py-common
Vivek 0193c8e90c
[sonic_py_common] Cache Static Information in device_info to speed up CLI response (#11696)
- Why I did it
Profiled the execution for the following cmd intfutil -c status

- How I did it
Cached the following information:
1. get_sonic_version_info()
2. get_platform_info()
None of the API exposed to the user libraries (for eg: sonic-utilities) has been modified
These methods involve reading text files or from redis. Thus, caching helped to improve the execution time

- How to verify it
Added UT's.
Verified on the device

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
2022-08-24 11:53:11 +03:00
..
sonic_py_common [sonic_py_common] Cache Static Information in device_info to speed up CLI response (#11696) 2022-08-24 11:53:11 +03:00
tests [sonic_py_common] Cache Static Information in device_info to speed up CLI response (#11696) 2022-08-24 11:53:11 +03:00
.gitignore [sonic-py-common] Add unit test framework (#5238) 2020-08-24 10:35:22 -07:00
pytest.ini [sonic-py-common] Add unit test framework (#5238) 2020-08-24 10:35:22 -07:00
setup.cfg [sonic-py-common] Add unit test framework (#5238) 2020-08-24 10:35:22 -07:00
setup.py Change pycommon to use swsscommon (#10099) 2022-06-03 14:30:09 +08:00