emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defcustoms, how do users find them?


From: Stefan Monnier
Subject: Re: Defcustoms, how do users find them?
Date: Thu, 26 Nov 2009 12:30:59 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> ;;; after emacs -Q
> ;; gc => ((64567 . 8541) (14423 . 0) (726 . 107) 88519 295966 (50 .
> 70) (347 . 97) (5376 . 3255))
> ;; Loading c:/emacs/p/091105/emacs/lisp/my-cus-load.el (source)...done
> ;; gc => ((91214 . 17541) (21758 . 0) (722 . 111) 258011 294763 (50 .
> 70) (348 . 96) (13174 . 4466))

So it's (/ 91214 64567.0) => 40% more cons-cells
        (/ 21758 14423.0) => 50% more symbols
        no significant change in markers
        (/ 258011 88519.0) => 3x times the string chars.
        no significant change in vectors
        no change in floats
        no significant change in intervals (aka text-properties)
        (/ 13174 5376.0) => 2.5 times the strings

It can also be counted as 26K additional cons cells, 7K additional
symbols, 170KB additional string chars, 8K additional strings, for
a total of about:

   (+ (* 26000 8) (* 7000 24) 170000 (* 8000 16)) => 650KB

So it ends up increasing Emacs's footprint by a bit less than
a megabyte.  It's not the end of the world, but it might be worthwhile
trying to avoid loading this data unless it's really needed.
Of course, maybe there's a way to represent the same info
more compactly or to load it piecemeal (e.g. I've been using a local
hack where C-h v foo-bar RET will try to load foo.el if foo-bar is not
yet defined).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]