In legacy system, We have created init module which load information and used by various module(import statement). It's big module which consume more memory and process longer time and some of information is not needed or not used till now. There is two propose solution.
-
Can we determine in Python who is using this module.Fox Example LoadData.py ( init Module) contain 100 data member A.py
import LoadData b = LoadData.nameB.py import LoadData b = LoadData.width
In above example, A.py using name and B.py is using width and rest information is not required (98 data member is not required). is there anyway which help us to determine usage of LoadData module along with usage of data member.
-
In simple, we need to traverse A.py and B.py and find manually to identify usage of object.
I am trying to implement first solution as I have more than 1000 module and it will be painful to determine by traversing each module. I am open to any tool which can integrate into python
Aucun commentaire:
Enregistrer un commentaire