|
Post by beardyboy40 on Apr 11, 2021 17:10:42 GMT
Hi folks
Wasn't sure this was the correct place to post this as its not a support request but figured here was most likely. Apologies if this is a stupid question. I am just a fairly noob-ish end user with no coding skills.
I would be interested to know how it is that Moksha gets by with so little ram? I don't know about other folk but on fresh boot my BL6 beta install is using only 190mb. Sure, other distro's manage the same or even lower ram (I am thinking AntiX, Puppy, LXLE) but they don't have the eye candy that Moksha manages.
So what is it that enables Moksha to deliver that eye candy with so little ram? What is different about Moksha as compared to, say Xfce or LXQt? Or should I be comparing it to WMs like Openbox or IceWM? Is it something to do with using EFL libraries as opposed to Qt or GTK?
Just curious.
|
|
|
Post by Hippytaff on Apr 11, 2021 18:01:37 GMT
There are many reasons, but a few are that moksha and Enlightenment are modular, so only what is used is loaded. Also as a departure from the unix way it relies on binaries. The author of Enlightenment, on which moksha is based, Rasta puts it like this:
“ it doesn't break things up into lots of tiny processes with pipes and what not gluing them together. it takes a monolithic approach - modules for expansion (like the linux kernel) and a very integrated single process (as much as it can manage) approach. this leads to e's memory footprint being tiny compared to all the desktops of equivalent functionality, and e's startup being pretty much at the top level (fast) given how much it does etc”
Others will be able to explain better, but that’s my (very basic) understanding.
Edit - and as enigma said below, wallpapers and themes are compiled into edj files which are binary, and are therefore a lot faster than Json or xml, and other traditional compression formats like tar or gzip for reasons I will never fully understand.
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Apr 11, 2021 18:24:02 GMT
Even system wallpapers aren't stored in a traditional format, everything is encoded edj files that allows Moksha to open it faster than a traditionally formatted or compressed files. The reason moksha has no text files for configuration is appearantly cuz edj is 50times faster than xml or json formatted text (per an email I read recently)...
|
|
|
Post by thewaiter on Apr 11, 2021 20:04:03 GMT
|
|
|
Post by ylee on Apr 12, 2021 9:55:56 GMT
...
So what is it that enables Moksha to deliver that eye candy with so little ram? What is different about Moksha as compared to, say Xfce or LXQt? Or should I be comparing it to WMs like Openbox or IceWM? Is it something to do with using EFL libraries as opposed to Qt or GTK?
Just curious.
Yes it has a lot to do with EFL, in addition to the things already mentioned above. Raster and the e-devs have went to extreme lengths to optimize both the memory usage and execution speed of EFL. In most things EFL outperforms gtk, qt and libglib. There is however a price to pay for that in that EFL offers less to the developer and is much harder to program in. At least in my experience.
|
|
|
Post by beardyboy40 on Apr 12, 2021 15:59:09 GMT
Thanks all for the responses. Very interesting. I hadn't even realised about the config files
|
|