all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Len Trigg <len@netvalue.net.nz>
To: emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; Slowdown in directory scanning over time.
Date: Tue, 13 May 2008 09:25:35 +1200	[thread overview]
Message-ID: <hbprrrtdtc.wl%len@netvalue.net.nz> (raw)
In-Reply-To: <hb8wzqk4l3.wl%len@netvalue.net.nz>

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.




      parent reply	other threads:[~2008-05-12 21:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-06 22:20 23.0.60; Slowdown in directory scanning over time Len Trigg
2008-04-06 23:03 ` Lennart Borgman (gmail)
     [not found] ` <47F956B2.2090100@gmail.com>
2008-04-07  0:02   ` Len Trigg
2008-05-12 21:25 ` Len Trigg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=hbprrrtdtc.wl%len@netvalue.net.nz \
    --to=len@netvalue.net.nz \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.