I am working on a quite big existing Python application and I am now trying to reduce its memory usage.
Thanks to memory_profiler I got this:
23 11.289 MiB 0.434 MiB from remote import settings
24 14.422 MiB 3.133 MiB from remote.controller import ChannelManager
25 14.422 MiB 0.000 MiB from remote import channel as channel_module
As you can see at line 24 the memory usage increases of 3.13MB.
Why importing a simple class (ChannelManager) should use so much memory?
ChannelManager is not a complex class, it just wraps some logic (spawning some processes and threads).
Thank you