[EMAIL PROTECTED] (Kim F. Storm) writes:

[...]

> Putting require into a function _does_ slow it down.

I decided to test this.  The speed effect is really minimal, but I did
discover a more serious problem with putting a require inside a
function that is called often.

(require 'ft) only loads a file if 'ft is not in features.  However,
it unconditionally adds '(require . ft) to current-load-list.  If you
call a function with require a million times, this eats up 16 MB of
memory.

Should this be fixed somehow?

Lute.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to