From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; Slowdown in directory scanning over time. Date: Mon, 07 Apr 2008 01:03:14 +0200 Message-ID: <47F956B2.2090100__14908.7936537855$1207523059$gmane$org@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207523021 1144 80.91.229.12 (6 Apr 2008 23:03:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2008 23:03:41 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, jdee-devel@lists.sourceforge.net, cedet-devel@lists.sourceforge.net To: Len Trigg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 01:04:13 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 1JiduG-0000ee-46 for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 01:04:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jidtd-0000mT-2m for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 19:03:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JidtZ-0000ll-IH for emacs-devel@gnu.org; Sun, 06 Apr 2008 19:03:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JidtY-0000l6-Ss for emacs-devel@gnu.org; Sun, 06 Apr 2008 19:03:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JidtY-0000kz-P1 for emacs-devel@gnu.org; Sun, 06 Apr 2008 19:03:28 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JidtY-00042s-BL for emacs-devel@gnu.org; Sun, 06 Apr 2008 19:03:28 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JidtY-00038h-4L for emacs-pretest-bug@gnu.org; Sun, 06 Apr 2008 19:03:28 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JidtU-00041e-E3 for emacs-pretest-bug@gnu.org; Sun, 06 Apr 2008 19:03:28 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JidtT-00041G-Nb for emacs-pretest-bug@gnu.org; Sun, 06 Apr 2008 19:03:24 -0400 Original-Received: from c83-254-150-27.bredband.comhem.se ([83.254.150.27]:60859 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JidtR-0007ej-5i; Mon, 07 Apr 2008 01:03:22 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080406-0, 2008-04-06), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.150.27 X-Scan-Result: No virus found in message 1JidtR-0007ej-5i. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JidtR-0007ej-5i 193e2143998e02c84655f94e79dbd14e X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:94527 Archived-At: JDEE and the things it depends on are not yet a part of Emacs, unfortunately. I don't know exactly where this message should go, but I guess that cedet-devel and jdee-devel both might be good places so I have CC:ed them. Len Trigg wrote: > [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" > > >