Why the usual import "import aiohttp" causes a 10-15 MB increase in RAM #5889
-
Hello. Why the usual import "import aiohttp" causes a 10-15 MB increase in RAM. This is critical for me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I've no idea, but you could try using tracemalloc to investigate: https://docs.python.org/3/library/tracemalloc.html Also, have you tried only importing the client side? e.g. with |
Beta Was this translation helpful? Give feedback.
I've no idea, but you could try using tracemalloc to investigate: https://docs.python.org/3/library/tracemalloc.html
If you find any obvious issues/improvements, then we can look at fixing them (I doubt any maintainer currently has time to do this investigation).
Also, have you tried only importing the client side? e.g. with
from aiohttp import ClientSession
, not sure if that might give an improvement or not...