From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Len Trigg Newsgroups: gmane.emacs.bugs Subject: bug#122: 23.0.60; Slowdown in directory scanning over time. Date: Fri, 12 Sep 2008 10:35:59 +1200 Organization: NetValue Ltd. Message-ID: References: <87r68bwgu9.fsf@cyd.mit.edu> Reply-To: Len Trigg , 122@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1221173282 17602 80.91.229.12 (11 Sep 2008 22:48:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 22:48:02 +0000 (UTC) Cc: 122@emacsbugs.donarmstrong.com, cyd@stupidchicken.com, bug-gnu-emacs@gnu.org, handa@m17n.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 00:48:56 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 1Kduy1-0007Qt-RL for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Sep 2008 00:48:51 +0200 Original-Received: from localhost ([127.0.0.1]:60753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdux0-0003aS-5j for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 18:47:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kduwv-0003a5-Ly for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 18:47:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kduwt-0003Zf-H7 for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 18:47:40 -0400 Original-Received: from [199.232.76.173] (port=32924 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kduwt-0003ZV-Dj for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 18:47:39 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49102) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kduws-0005Iu-3W for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 18:47:39 -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 m8BMlXZd020249; Thu, 11 Sep 2008 15:47:33 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8BMj41G018991; Thu, 11 Sep 2008 15:45:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Len Trigg Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Sep 2008 22:45:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 122 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122117258916660 (code B ref -1); Thu, 11 Sep 2008 22:45:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 11 Sep 2008 22:36:29 +0000 Original-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 m8BMaOJ4016654 for ; Thu, 11 Sep 2008 15:36:26 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdulz-0008OS-O4 for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 18:36:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdulw-0008Kp-59 for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 18:36:23 -0400 Original-Received: from [199.232.76.173] (port=37099 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdulv-0008KZ-Vs for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 18:36:20 -0400 Original-Received: from [202.37.129.7] (port=51253 helo=netvalue.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kduln-0003Zt-8b; Thu, 11 Sep 2008 18:36:12 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by netvalue.net.nz (Postfix) with ESMTP id 4692781048; Fri, 12 Sep 2008 10:27:58 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at netvalue.net.nz Original-Received: from netvalue.net.nz ([127.0.0.1]) by localhost (netvalue.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dqNqUAtwtkp0; Fri, 12 Sep 2008 10:27:56 +1200 (NZST) Original-Received: from nepenthes.nz.reeltwo.com (office.18londonst.co.nz [131.203.126.194]) by netvalue.net.nz (Postfix) with ESMTP id CBD637964; Fri, 12 Sep 2008 10:27:56 +1200 (NZST) In-Reply-To: User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 =?UTF-8?Q?(Goj=C5=8D)?= APEL/10.7 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Payment: hashcash 1.2 1:10:080911:rms@gnu.org::dkBhth9/EZc8KvVu:00000000Rd X-Hashcash: 1:10:080911:rms@gnu.org::dkBhth9/EZc8KvVu:00000000Rd X-Payment: hashcash 1.2 1:10:080911:122@emacsbugs.donarmstrong.com::pRghbE7uY161b5i3:000000000000000000000000000000000GV X-Hashcash: 1:10:080911:122@emacsbugs.donarmstrong.com::pRghbE7uY161b5i3:000000000000000000000000000000000GV X-Payment: hashcash 1.2 1:10:080911:handa@m17n.org::eBo8PbwiLgJNZCwo:00000Cc X-Hashcash: 1:10:080911:handa@m17n.org::eBo8PbwiLgJNZCwo:00000Cc X-Payment: hashcash 1.2 1:10:080911:cyd@stupidchicken.com::9N5y6R3eeohitJQp:000000000000000000000000000000000000000000XL X-Hashcash: 1:10:080911:cyd@stupidchicken.com::9N5y6R3eeohitJQp:000000000000000000000000000000000000000000XL X-Payment: hashcash 1.2 1:10:080911:bug-gnu-emacs@gnu.org::CjZFBhWul+Tea+A8:000000000000000000000000000000000000000000Gy X-Hashcash: 1:10:080911:bug-gnu-emacs@gnu.org::CjZFBhWul+Tea+A8:000000000000000000000000000000000000000000Gy X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 11 Sep 2008 18:47:40 -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:20491 Archived-At: At Thu, 11 Sep 2008 13:08:07 -0400, Richard M. Stallman wrote: > > The calls seem to be in a fairly even balance of mixture of > Fget_buffer and Fgarbage_collect. Why creating a list of files in a > directory should be calling get_buffer is beyond me. > > The backtrace shows why. It is making a new code-conversion buffer. Yes, but as an emacs user (rather than programmer), I think of buffers as being fairly heavyweight things (after all, they contain all the text I'm editing, and a typical user probably only has a few dozen open), compared to calling some kind of straight string conversion function. Perhaps that is an invalid assumption and buffers are lightweight. > There must be a bug in the logic that decides whether to make a new > code-conversion buffer, so that it makes too many of them. It seems this is likely to be the problem. This morning there are 225 code-conversion-work buffers hanging around, and my directory listing takes 11 seconds. Cheers, Len.