all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs24 slower than emacs23
@ 2014-02-07 21:41 Ryo Furue
  2014-02-08  4:37 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Ryo Furue @ 2014-02-07 21:41 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I've recently switched from emacs23 to emacs24 on Debian testing.  (The new one is called "Version: 24.3+1-2+b1".)  I haven't made any changes to my ~/.emacs and everything works, except that emacs24 is noticeably slower than emacs23, sometimes painfully so.

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.

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.

In passing, I notice most new Linux applications aren't usable on X over SSH because they tend to use GUI decorations too much.  Traditional ones like emacs, xdvi, xpdf, xterm, etc., happily run on X over SSH, but they are 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.

Cheers,

Ryo




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs24 slower than emacs23
  2014-02-07 21:41 emacs24 slower than emacs23 Ryo Furue
@ 2014-02-08  4:37 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2014-02-08  4:37 UTC (permalink / raw)
  To: help-gnu-emacs

> ~/.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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-08  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-07 21:41 emacs24 slower than emacs23 Ryo Furue
2014-02-08  4:37 ` Stefan Monnier

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.