From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#961: 23.0.60; Excess consing visiting files Date: Thu, 11 Sep 2008 07:03:36 -0400 Message-ID: Reply-To: rms@gnu.org, 961@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1221132533 24381 80.91.229.12 (11 Sep 2008 11:28:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 11:28:53 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 13:29:49 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdkMt-0000OR-Ty for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 13:29:48 +0200 Original-Received: from localhost ([127.0.0.1]:45777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdkLt-0000Kv-Kq for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 07:28:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdkKo-0008RK-Vw for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:27:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdkKn-0008QE-A1 for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:27:37 -0400 Original-Received: from [199.232.76.173] (port=37976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdkKm-0008Q4-N2 for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:27:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52370) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdkKl-0000Yo-Om for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 07:27:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8BBRXHu003815; Thu, 11 Sep 2008 04:27:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8BBF6Ax031474; Thu, 11 Sep 2008 04:15:06 -0700 X-Loop: don@donarmstrong.com Resent-From: "Richard M. Stallman" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Sep 2008 11:15:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 961 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122113112828983 (code B ref -1); Thu, 11 Sep 2008 11:15:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 11 Sep 2008 11:05:28 +0000 Original-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 Original-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 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 11 Sep 2008 07:27:37 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20475 gmane.emacs.pretest.bugs:23035 Archived-At: 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