unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs24 slower than emacs23
Date: Fri, 07 Feb 2014 23:37:36 -0500	[thread overview]
Message-ID: <jwveh3e9qr7.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: de85db19-2dc3-4f07-b28c-831081ff7d5a@googlegroups.com

> ~/.emacs and everything works, except that emacs24 is noticeably slower than
> emacs23, sometimes painfully so.

Such slow down is usually considered as a bug, so you might like to M-x
report-emacs-bug about that, tho please only do it for cases where you can
clearly measure the performance difference and have a repeatable test case.

> Most of the slowness is tolerable, but one issue is painful.  When I'm using
> emacs24 on "X over SSH" and start to select portion of text (region) by
> pressing Ctrl-Space, the cursor movement becomes extremely slow, that is, it
> takes a lot of time to select a region.

It's probably linked to select-active-regions.  IOW if you (setq
select-active-regions nil) or (setq select-active-regions 'only) in your
.emacs it might work around the problem.  Maybe this workaround is the
best we can do, but I doubt it.  So if you can provide enough details
that it can be reproduced, please report this as a bug so that we can
try and see how we can do better.

> Are there some settings to adjust to fix this problem?  I run emacs on an
> Debian server and my local machine is a Mac OS X machine running Xquartz.

Sometimes the problem with features like select-active-regions is linked
to an external tool that pro-actively copies the selection, so instead of
having a single short message from Emacs saying "I own the selection",
we have this one message followed by a request from that other tool to
send over the selection, followed by more messages actually doing
the send.
And this gets repeated for every cursor movement command.

In many such cases the problem is really in the external tool being too
eager to get the selection.

> minority.  If emacs becomes unusable, I'll probably have to stop X over SSH
> and perhaps rely on a cloud-shared directory (like Dropbox) or use tramp on
> local emacs.

I've heard several reports that Emacs is "too slow for X over SSH"
nowadays.  Back in Emacs-21 we had a similar problem, and we fixed it
("it" here is a simplification, since it was linked to several
problems).  We should do the same now, but that requires not just work
on our side, but also on the side of users of "X over SSH" to help us
track down the problems (e.g. using xtruss).

If you're up for it, then please do report those bugs and help us track
down those bandwidth thieves.


        Stefan




      reply	other threads:[~2014-02-08  4:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-07 21:41 emacs24 slower than emacs23 Ryo Furue
2014-02-08  4:37 ` Stefan Monnier [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwveh3e9qr7.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).