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: 23.0.60; Slowdown in directory scanning over time. Date: Mon, 07 Apr 2008 10:20:56 +1200 Organization: NetValue Ltd. Message-ID: 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 1207522044 31110 80.91.229.12 (6 Apr 2008 22:47:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2008 22:47:24 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 00:47:56 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 1JideV-0004q9-9q for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 00:47:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jidds-0006V6-6e for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 18:47:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jiddh-0006S7-4s for emacs-devel@gnu.org; Sun, 06 Apr 2008 18:47:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jidde-0006Qz-02 for emacs-devel@gnu.org; Sun, 06 Apr 2008 18:47:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jiddd-0006Qw-RQ for emacs-devel@gnu.org; Sun, 06 Apr 2008 18:47:01 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jiddd-0000QS-EJ for emacs-devel@gnu.org; Sun, 06 Apr 2008 18:47:01 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jiddd-0002hG-5I for emacs-pretest-bug@gnu.org; Sun, 06 Apr 2008 18:47:01 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JiddX-0000P7-Ga for emacs-pretest-bug@gnu.org; Sun, 06 Apr 2008 18:47:00 -0400 Original-Received: from [202.37.129.7] (helo=netvalue.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JiddW-0000NN-RA for emacs-pretest-bug@gnu.org; Sun, 06 Apr 2008 18:46:55 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by netvalue.net.nz (Postfix) with ESMTP id E9CB81125EB for ; Mon, 7 Apr 2008 10:43:15 +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 2TlxKQPH0dr4 for ; Mon, 7 Apr 2008 10:43:13 +1200 (NZST) Original-Received: from nepenthes.nz.reeltwo.com (unknown [131.203.126.193]) by netvalue.net.nz (Postfix) with ESMTP id 468B310F86D for ; Mon, 7 Apr 2008 10:17:19 +1200 (NZST) 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:080406:emacs-pretest-bug@gnu.org::rm4OxFWG9S2G7+VR:000000000000000000000000000000000000002L X-Hashcash: 1:10:080406:emacs-pretest-bug@gnu.org::rm4OxFWG9S2G7+VR:000000000000000000000000000000000000002L 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-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:94523 gmane.emacs.pretest.bugs:21910 Archived-At: [Resending this, because I'm not sure if my email made it through the first time] Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I'm using CVS emacs and I've noticed that it's exhibiting a very painful slowdown over time. I'm primarily using JDEE for Java development, and when opening a new java file it can get to taking minutes for the file to open. If I restart emacs things are snappy again. I have tried to narrow things down and think I have found the problem. When opening a java file, JDEE does a scan of library directories to build the project classpath, and it seems to be this scanning that is taking longer to evaluate. When switching to an already open Java buffer, it does a quick scan looking in various directories for changes to the project file, and this also slows down. 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. Cheers, Len. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home2/len/local/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.10.4) of 2008-03-25 on noir configured using `configure '--with-x-toolkit=gtk' '--prefix=/home2/len/local'' 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_NZ value of $XMODIFIERS: @im=none locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t pmwiki-minor-mode: t erc-autoaway-mode: t erc-button-mode: t erc-ring-mode: t erc-track-mode: t erc-fill-mode: t erc-stamp-mode: t erc-pcomplete-mode: t display-time-mode: t delete-selection-mode: t show-paren-mode: t pc-selection-mode: t tool-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-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x r i c DEL DEL DEL i r c RET j e TAB r TAB DEL DEL TAB h t t p : / / w w w . j w z . o r g / d o c / t a b s - v s - s p a c e s . h t m l RET k u r TAB h t t p : / / w w w . j w z . o r g / d o c / t a b s - v s - s p a c e s . h t m l RET C-x C-f ~ / t e TAB . e l TAB RET C-n C-n C-n C-n C-b C-x C-e C-w C-x C-e C-x C-e C-x C-e C-x C-e C-n ESC x r e p o r TAB b u TAB RET Recent messages: Took 0 seconds to list 166 files "Took 0 seconds to list 166 files" kill-region: The mark is not set now, so there is no region Took 0 seconds to list 166 files "Took 0 seconds to list 166 files" Took 0 seconds to list 166 files "Took 0 seconds to list 166 files" Took 0 seconds to list 166 files "Took 0 seconds to list 166 files" Took 0 seconds to list 166 files "Took 0 seconds to list 166 files"