all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Odd slowness in grep and dired modes
Date: Fri, 21 Mar 2014 10:13:06 +0200	[thread overview]
Message-ID: <83zjkk55rh.fsf@gnu.org> (raw)
In-Reply-To: <3a2879e3-cb96-495c-a6a4-6bb790449477@googlegroups.com>

> Date: Thu, 20 Mar 2014 23:10:52 -0700 (PDT)
> From: Smith_RS <rsmithpv@gmail.com>
> 
> This is for NT Emacs 24.3.1 running on Windows 7.
> 
> I found a situation where NT Emacs will slow to a crawl and consume high CPU cycles, the common behavior is directory browsing in dired or file browsing in grep-mode where the mouse-over behavior is being used. I ran the profiler and saw that all the time is spent in mouse-fixup-help-message.
> 
> Steps to duplicate:
> 
> - Open dired on a directory with a non trivial number of files (20 or more).
> - Run the mouse over the files without selecting anything, just let the mouse-over behavior happen.
> - Do this with profiling turned on and observe thousands of calls to mouse-fixup-help-message.
> 
> Alternately:
> 
> - Use grep-mode to search for a string that occurs in a large number of files.
> - Continue as above.

What exactly "slows to a crawl" in these situations?

I tried the first scenario, in a very large directory, and all I could
see that moving the mouse constantly over the file names makes a
single execution unit occupied by 27%.  I see no particular slow-down,
but since Emacs does nothing but display tooltips, I'm not sure what
operations would be slow in this scenario.

mouse-fixup-help-message generates the text for the tooltip shown when
you have the mouse above the file name, so it is called whenever you
move the mouse to another file.



  reply	other threads:[~2014-03-21  8:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-21  6:10 Odd slowness in grep and dired modes Smith_RS
2014-03-21  8:13 ` Eli Zaretskii [this message]
     [not found] ` <mailman.17728.1395389591.10748.help-gnu-emacs@gnu.org>
2014-03-21  8:25   ` Smith_RS
2014-03-21  8:57     ` Eli Zaretskii
2014-03-21 14:39     ` Drew Adams
     [not found]     ` <mailman.17734.1395392229.10748.help-gnu-emacs@gnu.org>
2014-03-21 16:41       ` Smith_RS
2014-03-21 16:54         ` Eli Zaretskii
     [not found]         ` <mailman.17774.1395420855.10748.help-gnu-emacs@gnu.org>
2014-03-21 17:26           ` Smith_RS
     [not found]     ` <mailman.17763.1395412779.10748.help-gnu-emacs@gnu.org>
2014-03-21 17:09       ` Smith_RS

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=83zjkk55rh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.