From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#122: 23.0.60; Slowdown in directory scanning over time. Date: Tue, 16 Sep 2008 09:25:22 -0400 Message-ID: References: <87r68bwgu9.fsf@cyd.mit.edu> Reply-To: Stefan Monnier , 122@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221572959 14524 80.91.229.12 (16 Sep 2008 13:49:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 13:49:19 +0000 (UTC) Cc: rms@gnu.org, 122@emacsbugs.donarmstrong.com, cyd@stupidchicken.com, lenbok@gmail.com, bug-submit-list@donarmstrong.com, bug-gnu-emacs@gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 15:50:12 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 1Kfavr-0002Kb-Gm for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 15:49:31 +0200 Original-Received: from localhost ([127.0.0.1]:49077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfauq-00019D-JY for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 09:48:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kfau3-0000lz-7O for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:47:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kfau1-0000l4-PU for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:47:38 -0400 Original-Received: from [199.232.76.173] (port=43945 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kfau1-0000kv-Iz for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:47:37 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54036) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kfau1-0003qr-23 for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:47:37 -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 m8GDlYAF007556; Tue, 16 Sep 2008 06:47:35 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8GDZ42Y002545; Tue, 16 Sep 2008 06:35:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 16 Sep 2008 13:35: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.122157153932429 (code B ref -1); Tue, 16 Sep 2008 13:35:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 Sep 2008 13:25:39 +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 m8GDPVCf032418 for ; Tue, 16 Sep 2008 06:25:33 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfaYd-0004fy-Fb for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:25:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfaYb-0004fV-MX for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:25:30 -0400 Original-Received: from [199.232.76.173] (port=40264 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfaYb-0004fS-IE for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 09:25:29 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:9018 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfaYW-0007bI-VN; Tue, 16 Sep 2008 09:25:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtgEAANRz0hMCrQ4/2dsb2JhbACBY7c9gWWBAw X-IronPort-AV: E=Sophos;i="4.32,408,1217822400"; d="scan'208";a="26899640" Original-Received: from 76-10-180-56.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.56]) by ironport2-out.teksavvy.com with ESMTP; 16 Sep 2008 09:25:22 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id F3F9BB40B1; Tue, 16 Sep 2008 09:25:22 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Tue, 16 Sep 2008 10:27:43 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 16 Sep 2008 09:47:38 -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:20564 Archived-At: > I've just modified the current code to avoid calling > Fget_buffer_create when we alreay have > Vcode_conversion_reused_workbuf. But, I think it doens't > influence the efficiency that much because > Fget_buffer_create doesn't create a new buffer if a buffer > of the specified name already exists. But the title-problem showed that having many buffers (like 200 or so) can cause this buffer-name-lookup to take a long time. The worst part is that having 200 buffers is not particularly excessive: I regularly have Emacs session with a hundred buffers or so. So we should avoid this lookup loop whenever necessary. Stefan