From unknown Wed Jun 18 23:02:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#961 <961@debbugs.gnu.org> To: bug#961 <961@debbugs.gnu.org> Subject: Status: 23.0.60; Excess consing visiting files Reply-To: bug#961 <961@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:02:16 +0000 retitle 961 23.0.60; Excess consing visiting files reassign 961 emacs submitter 961 rms@gnu.org severity 961 normal thanks From rms@gnu.org Thu Sep 11 04:05:28 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,SARE_OBFU_VISIT2 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Sep 2008 11:05:28 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8BB5PVJ028972 for ; Thu, 11 Sep 2008 04:05:26 -0700 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KdjxY-0000eB-76 for emacs-pretest-bug@gnu.org; Thu, 11 Sep 2008 07:03:36 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: emacs-pretest-bug@gnu.org Subject: 23.0.60; Excess consing visiting files Reply-to: rms@gnu.org Message-Id: Date: Thu, 11 Sep 2008 07:03:36 -0400 I have noticed that there are times when just typing o in Dired to visit a fairly small file causes a GC every time. It does not do that when I first start Emacs, but it does do an unreasonable amount of consing. I did `emacs -Q', then defined the functions gc-set-base and gc-info as shown in my other message. Then I visited a directory in which the following file was called out-35: ====================================================================== Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: rms Subject: Testing bcc: rms-outgoing@gnu.org Reply-to: rms@gnu.org --text follows this line-- This is a test message so I can see how much consing Emacs does. ====================================================================== Just to make things more stable, I typed o for another file in the directory first. Then I moved to the line for out-35, and typed M-* o M-* and got this output: In Emacs 23 C=47815 S=6631(92347) V=276 SYM=8 MISC=2674 INT=1173 C=58843 S=9776(135489) V=285 SYM=9 MISC=2727 INT=1174 In Emacs 22.2 C=21999 S=2025(39136) V=118 SYM=2 MISC=3904 INT=654 C=23214 S=2729(51808) V=118 SYM=3 MISC=4121 INT=655 They are both unreasonably large, but Emacs 23 conses 40k of strings, which is really amazing for a 215-character file. When I get into the situation where each file I visit causes a GC, I will measure that. In GNU Emacs 23.0.60.6 (mipsel-unknown-linux-gnu, GTK+ Version 2.12.11) of 2008-09-10 on lemote-menglan configured using `configure 'CFLAGS=-O0 -g -Wno-pointer-sign' 'mipsel-unknown-linux-gnu' 'build_alias=mipsel-unknown-linux-gnu' 'host_alias=mipsel-unknown-linux-gnu' 'target_alias=mipsel-unknown-linux-gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Mail Minor modes in effect: gpm-mouse-mode: t tooltip-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: 2 3 C-u C-n C-n I n SPC E m a c s SPC 2 2 . 2 RET RET C-x i f o o RET C-a C-u C-p C-p C-p C-p C-o C-o I SPC m a d e SPC a SPC C-a C-k I SPC h a v e SPC n o t i c e d SPC t h a t SPC s o e t i m e s C-u C-b C-b C-b m C-e SPC j u s t SPC t y p i n g SPC o SPC i n SPC D i r e d RET t o SPC v i s i t SPC a SPC f a i r l y SPC s m a l l SPC f i l e SPC c a u s e s SPC a SPC G C SPC e v e r y SPC t i m e . RET I t SPC d o e s SPC n t SPC d o ESC b C-b C-b o C-e t h a t C-u C-b SPC C-e SPC w h e n SPC I SPC f i r s t SPC s t a r t SPC E a c DEL DEL m a c s , SPC b u t SPC i t SPC d i e s RET DEL DEL DEL DEL o e d RET d o SPC C-p C-e DEL s C-n SPC DEL a n SPC u n r e a s o n a b l e SPC a m o u t SPC DEL DEL n t SPC o f SPC c o n s i n g , C-a C-p C-p C-p C-u C-u C-u C-k ESC x r e p o r t TAB RET Recent messages: Sending... Wrote /home/rms/outgoing/out-34 Sending...done Expunging deleted messages...done Quit [2 times] Sending... Wrote /home/rms/outgoing/out-35 Sending...done Mark set [3 times] Auto-saving...done From rudalics@gmx.at Thu Sep 11 04:42:39 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 961) by emacsbugs.donarmstrong.com; 11 Sep 2008 11:42:39 +0000 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8BBgawM009156 for <961@emacsbugs.donarmstrong.com>; Thu, 11 Sep 2008 04:42:37 -0700 Received: (qmail invoked by alias); 11 Sep 2008 11:42:30 -0000 Received: from 62-47-40-59.adsl.highway.telekom.at (EHLO [62.47.40.59]) [62.47.40.59] by mail.gmx.net (mp028) with SMTP; 11 Sep 2008 13:42:30 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+9ZusDvf69wnJ7AykbHgMw8NPLZ/yyaFU7Q6YM1+ RXOaL2vU1tIm9P Message-ID: <48C90392.7090604@gmx.at> Date: Thu, 11 Sep 2008 13:40:02 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: rms@gnu.org CC: 961@debbugs.gnu.org Subject: Re: bug#961: 23.0.60; Excess consing visiting files References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.75 > I have noticed that there are times when just typing o in Dired > to visit a fairly small file causes a GC every time. > It does not do that when I first start Emacs, but it does > do an unreasonable amount of consing. It might be completely unrelated but did you look at Bug#122? Len Trigg reports that he had 200 open buffers "(about 170 of which are named like *code-conversion-work*)". martin From rgm@gnu.org Thu Sep 11 09:08:20 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.5 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 11 Sep 2008 16:08:20 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8BG8HrU008894 for ; Thu, 11 Sep 2008 09:08:18 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Kdoge-0001lG-94; Thu, 11 Sep 2008 12:06:28 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18633.16900.218396.784362@fencepost.gnu.org> Date: Thu, 11 Sep 2008 12:06:28 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: opUlc~qZU[lsdlW+Q_AA]z7{B(AwIhtHnMV50de3977^s`;12:M|_$CMP5rG;Q2_@-HJkM X-Debbugs-No-Ack: yes reassign 959 emacs,cc-mode forcemerge 913 959 merge 917 960 961 From rms@gnu.org Thu Sep 11 10:10:00 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 11 Sep 2008 17:10:00 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8BH9vm1030357 for ; Thu, 11 Sep 2008 10:09:58 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdpg4-00066F-Uu for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 13:09:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdpg3-000647-Fy for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 13:09:56 -0400 Received: from [199.232.76.173] (port=38851 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdpg3-00063t-CI for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 13:09:55 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:50858) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kdpg3-0005NL-HV for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 13:09:55 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KdpeH-0004SE-Li; Thu, 11 Sep 2008 13:08:05 -0400 Content-Type: text/plain; charset=ISO-8859-15 From: "Richard M. Stallman" To: martin rudalics , 961@debbugs.gnu.org CC: bug-submit-list@donarmstrong.com, 961@debbugs.gnu.org, bug-gnu-emacs@gnu.org In-reply-to: <48C90392.7090604@gmx.at> (message from martin rudalics on Thu, 11 Sep 2008 13:40:02 +0200) Subject: Re: bug#961: 23.0.60; Excess consing visiting files Reply-to: rms@gnu.org References: <48C90392.7090604@gmx.at> Message-Id: Date: Thu, 11 Sep 2008 13:08:05 -0400 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 It might be completely unrelated but did you look at Bug#122? Len Trigg reports that he had 200 open buffers "(about 170 of which are named like *code-conversion-work*)". I just saw that a few minutes ago. Just now I have one buffer called ` *code-conversion-work*' and one called ` *code-converting-work*'. I think these names are confusingly similar; they should be changed so that it is clear why they are different and what each one is used for. But there is only one of each. This certainly does not explain why, shortly after `emacs -Q', visiting that short file makes 40k of strings. Next time it gets slow, I will investigate what hidden buffers I have, From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 24 14:23:37 2010 Received: (at control) by debbugs.gnu.org; 24 Jun 2010 18:23:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORr5N-00051L-8v for submit@debbugs.gnu.org; Thu, 24 Jun 2010 14:23:37 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORr5K-00051G-K0 for control@debbugs.gnu.org; Thu, 24 Jun 2010 14:23:35 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o5OINUI2013527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 24 Jun 2010 14:23:30 -0400 Received: by furry (Postfix, from userid 1000) id 5BF4B16D416; Thu, 24 Jun 2010 20:23:29 +0200 (CEST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 1382 Date: Thu, 24 Jun 2010 14:23:29 -0400 Message-ID: <87r5jw5ly6.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) severity 135 minor tags 710 + moreinfo unreproducible close 756 tags 844 + moreinfo unreproducible close 917 close 1000 tags 1125 + moreinfo unreproducible close 1159 severity 1238 wishlist close 1247 close 1381 close 1382 tags 1708 + moreinfo unreproducible close 1993 severity 2024 wishlist close 2236 severity 2299 wishlist tags 2394 + moreinfo unreproducible severity 2507 minor close 2583 tags 2690 + moreinfo unreproducible tags 2812 + moreinfo unreproducible tags 2843 + moreinfo unreproducible tags 2870 + moreinfo unreproducible tags 2877 + moreinfo unreproducible close 3032 close 3273 close 3349 close 4046 close 4358 close 4591 close 4656 thanks From unknown Wed Jun 18 23:02:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 23 Jul 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator