From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: require inside functions. Date: Fri, 08 Apr 2005 09:12:22 +0900 Message-ID: <87sm22gm8p.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <871x9w9dkn.fsf@xs4all.nl> <87mzsezu5f.fsf@xs4all.nl> <87hdimzou0.fsf@xs4all.nl> <87ll7uwy6m.fsf_-_@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1112919123 18277 80.91.229.2 (8 Apr 2005 00:12:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 00:12:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: ding-owner+M8642@lists.math.uh.edu Fri Apr 08 02:12:01 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJh6L-0002GN-K9 for ding-account@gmane.org; Fri, 08 Apr 2005 02:11:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DJh7b-0001YX-00; Thu, 07 Apr 2005 19:13:15 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DJh7T-0001YR-00 for ding@lists.math.uh.edu; Thu, 07 Apr 2005 19:13:07 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DJh7T-0006rB-04 for ding@lists.math.uh.edu; Thu, 07 Apr 2005 19:13:07 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DJh7R-0006YG-00 for ; Fri, 08 Apr 2005 02:13:05 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DJh51-00028F-U0 for ding@gnus.org; Fri, 08 Apr 2005 02:10:35 +0200 Original-Received: from yokohama2-61-203-152-142.ap.0038.net ([61.203.152.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2005 02:10:35 +0200 Original-Received: from miles by yokohama2-61-203-152-142.ap.0038.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2005 02:10:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: yokohama2-61-203-152-142.ap.0038.net System-Type: i686-pc-linux-gnu Cancel-Lock: sha1:mfAfntWKp5oiQwyTDOwj38JXFW4= X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60115 gmane.emacs.devel:35716 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35716 storm@cua.dk (Kim F. Storm) 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. > > The problem seems to be that current-load-list is never truncated. > But I don't quite understand what current-load-list is good for > (outside the byte compiler). I don't understand it either, but ... if require doesn't actually load the file, surely nothing at all should be added to `current-load-list'? This seems like an out-and-out bug [and I notice my `current-load-list' is also filled up entirely with largely redundant (require . xxx) entries.] -Miles -- Next to fried food, the South has suffered most from oratory. -- Walter Hines Page