Re:PyQt5 Tutorial: Create a Python GUI in 2018
by morenoh149 on Tuesday September 25, 2018 @01:13PM
(#18068276)
What's the memory consumption of pyQT compared to electron apps?
[ Parent
| on HN ]
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by denysonique on Tuesday September 25, 2018 @10:04PM
(#18072121)
For a JavaScript alternative to pyQT I recommend proton-native[1] - a React environment for cross platform native desktop apps.
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by vbsteven on Tuesday September 25, 2018 @01:55PM
(#18068747)
I can't comment for pyQt. But the regular C++ Qt app I'm tinkering with at the moment uses 11MB private and about 50MB in shared memory for displaying a simple window with some nested widgets and scrollable lists.
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by jcelerier on Tuesday September 25, 2018 @04:14PM
(#18070096)
for reference, the app I'm working on (https://ossia.io), a
multiple-hundred-LOC Qt-based DAW with support for many network protocols and which uses most Qt libraries as well as boost uses itself 41 megabytes of RAM (private working set) and 70 megabytes total (working set) with a small document loaded, according to the windows task manager.
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by Thev00d00 on Wednesday September 26, 2018 @04:00AM
(#18073747)
/me cries in electron
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by toyg on Tuesday September 25, 2018 @01:53PM
(#18068727)
An order of magnitude lower. I see 40Mb on macos right now for a simple app.
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by megous on Tuesday September 25, 2018 @02:54PM
(#18069310)
I see a simple electron app using 140MB total. Measured by running 'free -m' before and after starting the app and waiting a while for a gc to run.
Measuring memory use is difficult.
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by TheAceOfHearts on Tuesday September 25, 2018 @03:06PM
(#18069428)
FYI, you can open dev tools in electron and manually trigger GC [0].
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by megous on Wednesday September 26, 2018 @07:00AM
(#18074643)
I'm sure opending dev tools will increase memory use significantly though. So it's a bit self-defeating. :)
Perhaps there's some API to call instead.
Re:PyQt5 Tutorial: Create a Python GUI in 2018
by DanFeldman on Tuesday September 25, 2018 @02:01PM
(#18068810)
I don't know off hand, and we never compared w/ Electron, it was just floated as an idea. When we eventually fully refactor our GUI code to be agnostic of ROS we'll profile more completely.