4 ms·
What's the memory consumption of pyQT compared to electron apps?
by morenoh149 8y ago
What's the memory consumption of pyQT compared to electron apps?
- toyg 8y agoAn order of magnitude lower. I see 40Mb on macos right now for a simple app.
- megous 8y agoI 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.
- TheAceOfHearts 8y agoFYI, you can open dev tools in electron and manually trigger GC [0]. [0] https://i.imgur.com/JbWArmR.png https://i.imgur.com/JbWArmR.png
- megous 8y agoI'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.
- vbsteven 8y agoI 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.
- jcelerier 8y agofor reference, the app I'm working on (https://ossia.io 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.
- Thev00d00 8y ago/me cries in electron
- DanFeldman 8y agoI 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.
- denysonique 8y agoFor a JavaScript alternative to pyQT I recommend proton-native[1] - a React environment for cross platform native desktop apps. 1: https://github.com/kusti8/proton-native https://github.com/kusti8/proton-native