f135f37a50
- Why I did it "import sonic_platform" takes about 600ms ~ 1000ms, it is kind of slow. After this optimization, the time is about 100ms. The benefit is that those CLIs which does not need the slow import sentence would be faster than before. - How I did it Find slow import and call them when need. - How to verify it Measure the import time. |
||
---|---|---|
.. | ||
sonic_platform | ||
tests | ||
.gitignore | ||
pytest.ini | ||
setup.cfg | ||
setup.py |