Is emacs large?

Expected goals

In this short essay, I shall try answering the question "Is GNU Emacs a large editor?" I'm not that interested in functionality or memory footprint, instead concentrating on disk footprint (that being the most trivial measurement to get hard data on).

Methodology

We will identify all files needed to run GNU Emacs ("GNU Emacs 21.4.1", as distributed by Debian, including all conmpiled emacs-lisp code). The chosen tool for this is du (for extracting file size), find (for locating the .elc (compiled emacs-lisp) files) and awk (for producing totals).

Types of emacs files

There's essentially three file types used by emacs.

Types of files for nvi and vim

In both cases, there's a central executable and assorted message catalogs. In vim's case, there also seems to be quite a few other assorted files, I shall blithely assume taht they are essential to the installation.

Measurements for Eclipse

I don't use Eclipse myself, so I shall trust the Debian packagers to have included what's needed. Since I'm not installing it, I can't report the number of files, but I do have a "total size".

Disk footprints

EditorSubsetFile countSize
Vim141223856 KB
nvi11452 KB
Emacsbinary14320 KB
Emacs.el files87631776 KB
Emacs.elc files79626984 KB
Emacstotal167363080 KB
Emacsno .el79731304 KB
EclipseN/A143 MB
As we can see, emacs has a noticeably higher file count than Vim, though the .el files are, strictly speaking, optional. Discounting those, emacs clocks in at 797 files, a much lower count than Vim.

Emacs consumes much more data storage than vim, but (again) with the .el files removed, it comes in at 31% larger rather than 164% larger. Both emacs and Vim are rather stodgy, compared to nvi.
EditorRelative file countRelative size
nvi11
Emacs, with .el152.1139.6
Emacs, no .el72.569.3
Vim128.452.8
EclipseN/A316.4
As can see from the relative charts, an emacs without the emacs-lisp source files (the ".el" files) is comparable in size to a Vim installation and uses fewer inodes (fewer files, probably fewer directories).

Conclusion

No, emacs is not a "small editor", of the three editors investigated, nvi is by far the smallest. However, proponents of Vim do not have much of a leg to stand on when they call emacs "large". By default, the Debian GNU emacs package will not install the emacs-lisp code, so it has fewer files than Vim, but requires a bit more storage in total.

So, what editor sould you use? The easy answer is whatever you're comfortable with. A slightly more complicated answer is to try an editor for at least a few weeks before saying it is unusable, because it's so cryptic. Me, I use emacs and nvi and can now remove vim from my machine, this test having been brought to conclusion.

Changes

This is one of Ingvar's essays.

This is one of Ingvar's essays

All fields below are mandatory, your email address will not be displayed by the site. All comments are sent to a moderation queue, so do not be surprised that it doesn't show up immediately.

Name:
Email (will not be displayed):
Comment: