[SOLVED] Why does my pyqt4 script take over 1GB of memory?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Created a pyqt4 utility for end users. The GUI contains a stacked widget with 5 'pages'. Four of the 'pages' contain a tab widget and the last 'page' load an html doc into a webveiw - uses webkit.
Most of the tab widgets contain a few text widgets and command buttons.
There is also a tree view, a menu, and status bar.
It's not a simple dialog but 1GB or memory seems excessive to me. I don't suppose there is a way to reduce the memory footprint.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
fair enough you can't post it but as an aside I use the gtk2 webkit in an editor as a help viewer and with it all running I only see 75M used, I am using it in 'c' as opposed to pyhton though.
Confirmed. If I strip out webkit the memory footprint drops from 1.3G to 200M.
I use webkit to display a usage document so it is not critical to the actual function of the utility. Is there a less memory intensive way to display html?
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
Refering back to my preivious post In my app if the builtin webkit viewer is not built I just build the same html page but pass it to the default webbrowser with xdg-open, youshould be able to do this from python quite easily.
Refering back to my preivious post In my app if the builtin webkit viewer is not built I just build the same html page but pass it to the default webbrowser with xdg-open, youshould be able to do this from python quite easily.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.