unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* slowness scrolling in *Help* windows
@ 2014-09-08 17:07 Perry E. Metzger
  2014-09-08 18:05 ` Andreas Schwab
  2014-09-08 18:05 ` Drew Adams
  0 siblings, 2 replies; 4+ messages in thread
From: Perry E. Metzger @ 2014-09-08 17:07 UTC (permalink / raw)
  To: emacs-devel

Running a recent version of the trunk I've compiled on Mac OS X

(aka GNU Emacs 24.4.50.1 (x86_64-apple-darwin13.3.0, NS
appkit-1265.21 Version 10.9.4 (Build 13E28)) of 2014-09-04 on
jabberwock.cb.piermont.com)

I've been noticing that sometimes scrolling in *Help* gets very, very
slow sometimes. Typical case: C-h s (that is, view the syntax table),
and scroll through it, and it can take seconds for the screen to do
something after C-v

It is possible this is only happening if there are loads of "unusual"
Unicode characters in the buffer in question. I don't have any good
very long files of lots of Unicode characters to check if it is
happening on all buffers, or just *Help* buffers.

Is this a known problem? Should I file a bug report?

-- 
Perry E. Metzger		perry@piermont.com



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

* Re: slowness scrolling in *Help* windows
  2014-09-08 17:07 slowness scrolling in *Help* windows Perry E. Metzger
@ 2014-09-08 18:05 ` Andreas Schwab
  2014-09-09  1:51   ` Perry E. Metzger
  2014-09-08 18:05 ` Drew Adams
  1 sibling, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2014-09-08 18:05 UTC (permalink / raw)
  To: Perry E. Metzger; +Cc: emacs-devel

"Perry E. Metzger" <perry@piermont.com> writes:

> I've been noticing that sometimes scrolling in *Help* gets very, very
> slow sometimes. Typical case: C-h s (that is, view the syntax table),
> and scroll through it, and it can take seconds for the screen to do
> something after C-v

Emacs needs to look up the fonts for the characters in the buffer.  That
can take some time depending on the number of installed fonts.

> It is possible this is only happening if there are loads of "unusual"
> Unicode characters in the buffer in question. I don't have any good
> very long files of lots of Unicode characters to check if it is
> happening on all buffers, or just *Help* buffers.

It happens for any buffer that contains many different characters from
unusual scripts.  Try scrolling through the buffer generated by
mule-diag for an extreme example.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



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

* RE: slowness scrolling in *Help* windows
  2014-09-08 17:07 slowness scrolling in *Help* windows Perry E. Metzger
  2014-09-08 18:05 ` Andreas Schwab
@ 2014-09-08 18:05 ` Drew Adams
  1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2014-09-08 18:05 UTC (permalink / raw)
  To: Perry E. Metzger, emacs-devel

> I've been noticing that sometimes scrolling in *Help* gets very,
> very
> slow sometimes. Typical case: C-h s (that is, view the syntax
> table),
> and scroll through it, and it can take seconds for the screen to do
> something after C-v
> 
> It is possible this is only happening if there are loads of
> "unusual"
> Unicode characters in the buffer in question. I don't have any good
> very long files of lots of Unicode characters to check if it is
> happening on all buffers, or just *Help* buffers.
> 
> Is this a known problem? Should I file a bug report?

FWIW, I see this also.



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

* Re: slowness scrolling in *Help* windows
  2014-09-08 18:05 ` Andreas Schwab
@ 2014-09-09  1:51   ` Perry E. Metzger
  0 siblings, 0 replies; 4+ messages in thread
From: Perry E. Metzger @ 2014-09-09  1:51 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

On Mon, 08 Sep 2014 20:05:11 +0200 Andreas Schwab
<schwab@linux-m68k.org> wrote:
> "Perry E. Metzger" <perry@piermont.com> writes:
> 
> > I've been noticing that sometimes scrolling in *Help* gets very,
> > very slow sometimes. Typical case: C-h s (that is, view the
> > syntax table), and scroll through it, and it can take seconds for
> > the screen to do something after C-v
> 
> Emacs needs to look up the fonts for the characters in the buffer.
> That can take some time depending on the number of installed fonts.

I can believe that this is part of the problem, but it seems like it
is anomalously long under the circumstances. It should not take
seconds on a modern processor to perform this action. Perhaps
something rather inefficient is going on, like a bad choice of a
search algorithm?

Perry
-- 
Perry E. Metzger		perry@piermont.com



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

end of thread, other threads:[~2014-09-09  1:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08 17:07 slowness scrolling in *Help* windows Perry E. Metzger
2014-09-08 18:05 ` Andreas Schwab
2014-09-09  1:51   ` Perry E. Metzger
2014-09-08 18:05 ` Drew Adams

Code repositories for project(s) associated with this public inbox

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

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).