[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: require inside functions.
From: |
David Kastrup |
Subject: |
Re: require inside functions. |
Date: |
Fri, 08 Apr 2005 10:16:47 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Richard Stallman <address@hidden> writes:
> (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.
>
> This was done deliberately. The idea is that it's useful
> to record that file foo depends on file bar, even if bar
> was already loaded before foo.
>
> However, it isn't useful to record (require . bar) an additional
> time in current-load-list when it's already there. So I think the
> right fix is to check with Fmember and not add it a second time.
Probably a performance issue? Maybe the check for it already being
present should be done using a hashtable, say current-load-hashtable?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: Changes in calendar/time-date.el, (continued)
- Re: Changes in calendar/time-date.el, Kim F. Storm, 2005/04/05
- Re: Changes in calendar/time-date.el, Miles Bader, 2005/04/05
- Re: Changes in calendar/time-date.el, Kim F. Storm, 2005/04/05
- require inside functions. (was: Changes in calendar/time-date.el), Lute Kamstra, 2005/04/07
- Re: require inside functions. (was: Changes in calendar/time-date.el), Kim F. Storm, 2005/04/07
- Re: require inside functions., Stefan Monnier, 2005/04/07
- Re: require inside functions., Miles Bader, 2005/04/07
- Re: require inside functions., Stefan Monnier, 2005/04/07
- Re: require inside functions., Miles Bader, 2005/04/07
- Re: require inside functions. (was: Changes in calendar/time-date.el), Richard Stallman, 2005/04/07
- Re: require inside functions.,
David Kastrup <=
- Re: require inside functions. (was: Changes in calendar/time-date.el), Kim F. Storm, 2005/04/08
- Re: require inside functions. (was: Changes in calendar/time-date.el), Richard Stallman, 2005/04/08
- Re: require inside functions., Lute Kamstra, 2005/04/09
- Re: require inside functions., Richard Stallman, 2005/04/09
- Re: require inside functions., Lute Kamstra, 2005/04/13
- Re: require inside functions., Richard Stallman, 2005/04/14
- Re: require inside functions., Lute Kamstra, 2005/04/15
- Re: Changes in calendar/time-date.el, Lute Kamstra, 2005/04/05