I want to create a Python package that has multiple subpackages. Each of those subpackages contain files that import the same specific module that is quite large in size.
So as an example, file A.py from subpackage A will import a module that is supposedly named LargeSizedModule and file B.py from subpackage B will also import LargeSizedModule. Similarly with C.py from subpackage C.
Does anyone know how I can efficiently import the same exact module across multiple subpackages? I would like to reduce the 'loading' time that comes from those duplicate imports.
sys.modules, IIRC). What has made you think that this is a problem?