PDA

View Full Version : Very strange: Emacs leaving a smaller footprint than gedit



Reisswolf
9th February 2007, 11:44 PM
Here are the relevant lines from "ps aux":



USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
roy 4135 0.0 2.3 16488 11112 pts/0 S 12:30 0:02 emacs
roy 8001 2.3 3.9 54856 18508 pts/0 S 17:56 0:00 gedit


And this in spite of the fact that I have three files currently loaded into emacs, while there is nothing loaded into gedit. Shouldn't it be the other way around? Isn't emacs supposed to be the memory hog and gedit the "lightweight" editor?

RupertPupkin
10th February 2007, 04:34 AM
Not anymore. Emacs is based on Xlib and Xaw3d, which are very lightweight libraries. But gedit is based on gtk+ and other GNOME libraries, which are a bit heavier. Compare the output of 'ldd /usr/bin/emacs-x' and 'ldd /usr/bin/gedit' to see all the libraries the two are linked against.