From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Len Trigg Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Slowdown in directory scanning over time. Date: Tue, 13 May 2008 09:25:35 +1200 Organization: NetValue Ltd. Message-ID: References: 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 1210631072 14873 80.91.229.12 (12 May 2008 22:24:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2008 22:24:32 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 13 00:25:07 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JvgSB-0001fH-5W for ged-emacs-devel@m.gmane.org; Tue, 13 May 2008 00:25:07 +0200 Original-Received: from localhost ([127.0.0.1]:47209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvgRS-0003qH-7R for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 18:24:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvfWn-0007Bg-Re for emacs-devel@gnu.org; Mon, 12 May 2008 17:25:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvfWl-0007BR-H9 for emacs-devel@gnu.org; Mon, 12 May 2008 17:25:48 -0400 Original-Received: from [199.232.76.173] (port=40827 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvfWl-0007BO-9f for emacs-devel@gnu.org; Mon, 12 May 2008 17:25:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:52511) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvfWl-00056n-IZ for emacs-devel@gnu.org; Mon, 12 May 2008 17:25:47 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:41443 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JvfVr-0003qi-TV for emacs-pretest-bug@gnu.org; Mon, 12 May 2008 17:24:51 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JvfWg-00055l-8l for emacs-pretest-bug@gnu.org; Mon, 12 May 2008 17:25:46 -0400 Original-Received: from [202.37.129.7] (port=41900 helo=netvalue.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JvfWf-00054g-PD for emacs-pretest-bug@gnu.org; Mon, 12 May 2008 17:25:42 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by netvalue.net.nz (Postfix) with ESMTP id 3695C11F98F for ; Tue, 13 May 2008 09:18: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 wpGFLmHbFOkY for ; Tue, 13 May 2008 09:18: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 ADDDA11F971 for ; Tue, 13 May 2008 09:18: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?B?R29qxY0=?=) APEL/10.7 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Payment: hashcash 1.2 1:10:080512:emacs-pretest-bug@gnu.org::utO0ZO7KTj5N9b4R:000000000000000000000000000000000000009g X-Hashcash: 1:10:080512:emacs-pretest-bug@gnu.org::utO0ZO7KTj5N9b4R:000000000000000000000000000000000000009g X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 12 May 2008 18:23:50 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97052 gmane.emacs.pretest.bugs:22284 Archived-At: Len Trigg wrote: > If I evaluate the following code: > > (let ((time-initial (current-time)) > (files (directory-files "/home2/len/reeltwo_sandboxes/vetech/src/com/vetech/datamodel"))) > (message (format "Took %d seconds to list %d files" (time-to-seconds (time-subtract (current-time) time-initial)) (length files)))) > > with the emacs I just had running (which had been open for several > days, but only had approximately 35 buffers open), the output said it > took between 2 and 3 seconds to list 166 files. With this freshly > restarted emacs, it now repeatedly says 0 seconds. I hope you can pin > things down to find the actual cause. Can someone please try to replicate this problem by trying the above snippet in an emacs that has been running for several days, for a directory containing many files? Is this not causing problems for other people (maybe emacs developers tend not to have long-running emacs)? Previously I could have an emacs running for months without restarting, but now I have to restart it every couple of days because it gets too slow. Cheers, Len.