GNU bug report logs -
#4287
reducing emacs size by more frequent garbage-collect calls in loadup.el
Previous Next
Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>
Date: Sat, 29 Aug 2009 18:45:05 UTC
Severity: normal
Done: Dan Nicolaescu <dann <at> ics.uci.edu>
Bug is archived. No further changes may be made.
Full log
Message #44 received at 4287 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> Sorry, too ugly to be worth the few bytes (especially since these are
>> bytes you'll be using anyway as soon as you start Emacs).
> I've often wondered why there is no `after-load-hook' or
> `after-load-functions', run directly from (the end of) Fload. Then we
> could do now
We could replace the call from C to do-after-load-evaluation by
Frun_hooks(Qafter-load-functions), either passing it the file name
explicitly or making sure load-file-name is still set.
> which is not so easy or elegant with `after-load-alist' (whose
> regexp-matching functionality is implemented in elisp, AFAICS).
Doesn't something like (push '("" (garbage-collect)) after-load-alist)
do the trick? Oh I see it doesn't because we check purify-flag.
Clearly this check could be removed if we use after-load-functions.
Stefan
This bug report was last modified 15 years and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.