{"action":"created","issue":{"url":"https://api.github.com/repos/n1nj4sec/pupy/issues/348","repository_url":"https://api.github.com/repos/n1nj4sec/pupy","labels_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/348/comments","events_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/348/events","html_url":"https://github.com/n1nj4sec/pupy/issues/348","id":220579957,"number":348,"title":"Memory usage decrease iniciative","user":{"login":"alxchk","id":329535,"avatar_url":"https://avatars3.githubusercontent.com/u/329535?v=3","gravatar_id":"","url":"https://api.github.com/users/alxchk","html_url":"https://github.com/alxchk","followers_url":"https://api.github.com/users/alxchk/followers","following_url":"https://api.github.com/users/alxchk/following{/other_user}","gists_url":"https://api.github.com/users/alxchk/gists{/gist_id}","starred_url":"https://api.github.com/users/alxchk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxchk/subscriptions","organizations_url":"https://api.github.com/users/alxchk/orgs","repos_url":"https://api.github.com/users/alxchk/repos","events_url":"https://api.github.com/users/alxchk/events{/privacy}","received_events_url":"https://api.github.com/users/alxchk/received_events","type":"User","site_admin":false},"labels":[{"id":392089957,"url":"https://api.github.com/repos/n1nj4sec/pupy/labels/improvement","name":"improvement","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-10T09:02:48Z","updated_at":"2017-04-12T08:24:21Z","closed_at":null,"body":"Currently Linux client eats about 25 MB ram from statring point. After long and resultless measurments and investigations, I came to conclusion that there is simply to many stuff loaded to memory. Most of that is functional objects (functions). I propose to adopt code and dependencies to remove duplicate libraries. These mostly about crypto libraries and parsers (XML/YAML).\r\n\r\nCurrently pupy code requires only pycrypto to run. In unstable branch I switched pycrypto to pycryptodome. I think at this point we can try to remove all libraries which implements different things missing from pycrypto. Second issue is Hazmat's cryptography. It's quite fat binding over OpenSSL. Are we really require it? Maybe it's possible to migrate such code to pycryptodome? Or maybe it's better to move in opposite direction - from pycryptodome to cryptography?\r\n\r\nSecond thing are transports. Some of them depends on libraries which are not used in other places (like yaml). I think it's better to adopt them to reduce dependencies."},"comment":{"url":"https://api.github.com/repos/n1nj4sec/pupy/issues/comments/293508418","html_url":"https://github.com/n1nj4sec/pupy/issues/348#issuecomment-293508418","issue_url":"https://api.github.com/repos/n1nj4sec/pupy/issues/348","id":293508418,"user":{"login":"alxchk","id":329535,"avatar_url":"https://avatars3.githubusercontent.com/u/329535?v=3","gravatar_id":"","url":"https://api.github.com/users/alxchk","html_url":"https://github.com/alxchk","followers_url":"https://api.github.com/users/alxchk/followers","following_url":"https://api.github.com/users/alxchk/following{/other_user}","gists_url":"https://api.github.com/users/alxchk/gists{/gist_id}","starred_url":"https://api.github.com/users/alxchk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxchk/subscriptions","organizations_url":"https://api.github.com/users/alxchk/orgs","repos_url":"https://api.github.com/users/alxchk/repos","events_url":"https://api.github.com/users/alxchk/events{/privacy}","received_events_url":"https://api.github.com/users/alxchk/received_events","type":"User","site_admin":false},"created_at":"2017-04-12T08:24:21Z","updated_at":"2017-04-12T08:24:21Z","body":"BTW, reloading module with lower memory consuption is working in pupy even now. You can easily check this.\r\n\r\n```\r\ncat >>packages/all/lol.py\r\nA=\"a\"*30*10**6\r\n\r\nrun load_package -f lol\r\nrun ps -I MEMORY_INFO -s PUPY_PID_HERE\r\n\r\ncat >>packages/all/lol.py\r\nA=\"lol\"\r\n\r\nrun load_package -f lol\r\nrun ps -I MEMORY_INFO -s PUPY_PID_HERE\r\n```"}}
{"actor":{"display_login":"alxchk"}}