unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24523: Base64 images makes Emacs slow
@ 2016-09-24  5:37 Andreas Nilsson
  2016-09-24  6:53 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Nilsson @ 2016-09-24  5:37 UTC (permalink / raw)
  To: 24523

Hi.

When developing Javascript with base64 images in the code Emacs becomes
slow and laggy, it takes several seconds for a character to input in
the buffer with such an image string in it.

I have tried emacs -Q with no mode loaded and the lag is still there,
what should I do?

Thanks.

Andreas.





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

* bug#24523: Base64 images makes Emacs slow
  2016-09-24  5:37 bug#24523: Base64 images makes Emacs slow Andreas Nilsson
@ 2016-09-24  6:53 ` Eli Zaretskii
  2016-09-24  9:09   ` Andreas Nilsson
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2016-09-24  6:53 UTC (permalink / raw)
  To: Andreas Nilsson; +Cc: 24523

> Date: Sat, 24 Sep 2016 07:37:39 +0200
> From: Andreas Nilsson <an@bahnhof.se>
> 
> When developing Javascript with base64 images in the code Emacs becomes
> slow and laggy, it takes several seconds for a character to input in
> the buffer with such an image string in it.
> 
> I have tried emacs -Q with no mode loaded and the lag is still there,
> what should I do?

Report the details, please.  Ideally, post a recipe, starting with
"emacs -Q" and loading the necessary support libraries, then include
whatever commands are needed to demonstrate the slowness.  Attach
image files needed to reproduce the problem.  Also, include the
details of your platform (if you use report-emacs-bug, it will do that
for you).

Thanks.





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

* bug#24523: Base64 images makes Emacs slow
  2016-09-24  6:53 ` Eli Zaretskii
@ 2016-09-24  9:09   ` Andreas Nilsson
  2016-09-24 11:32     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Nilsson @ 2016-09-24  9:09 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 24523

Den Sat, 24 Sep 2016 09:53:57 +0300
skrev Re: bug#24523: Base64 images makes Emacs slow:

> > Date: Sat, 24 Sep 2016 07:37:39 +0200
> > From: Andreas Nilsson <an@bahnhof.se>
> > 
> > When developing Javascript with base64 images in the code Emacs
> > becomes slow and laggy, it takes several seconds for a character to
> > input in the buffer with such an image string in it.
> > 
> > I have tried emacs -Q with no mode loaded and the lag is still
> > there, what should I do?  
> 
> Report the details, please.  Ideally, post a recipe, starting with
> "emacs -Q" and loading the necessary support libraries, then include
> whatever commands are needed to demonstrate the slowness.  Attach
> image files needed to reproduce the problem.  Also, include the
> details of your platform (if you use report-emacs-bug, it will do that
> for you).
> 
> Thanks.

1. emacs -Q
2. Visit https://www.base64-image.de/ and "click here" select an image
(I selected a ~200kB one)
3. Click "show code" and copy paste the string you get into *scratch*.
4. Now try C-v and M-v as well as type some characters, this is the
point where it lags.

My platforms are Windows 10 and Arch Linux, happens on both. Latest
stable Emacs 25.1.1. Specifically on Arch I use x86_64 with GTK+
3.20.9, if that is of interest.

Thanks.





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

* bug#24523: Base64 images makes Emacs slow
  2016-09-24  9:09   ` Andreas Nilsson
@ 2016-09-24 11:32     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2016-09-24 11:32 UTC (permalink / raw)
  To: Andreas Nilsson; +Cc: 24523

merge 24523 13675
thanks

> Date: Sat, 24 Sep 2016 11:09:01 +0200
> From: Andreas Nilsson <an@bahnhof.se>
> Cc: 24523@debbugs.gnu.org
> 
> 1. emacs -Q
> 2. Visit https://www.base64-image.de/ and "click here" select an image
> (I selected a ~200kB one)
> 3. Click "show code" and copy paste the string you get into *scratch*.
> 4. Now try C-v and M-v as well as type some characters, this is the
> point where it lags.

This creates a single physical line whose length is 280K characters.
It is a known limitation of the Emacs display engine that it's very
slow with such long lines.  See bug #13675.





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

end of thread, other threads:[~2016-09-24 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-24  5:37 bug#24523: Base64 images makes Emacs slow Andreas Nilsson
2016-09-24  6:53 ` Eli Zaretskii
2016-09-24  9:09   ` Andreas Nilsson
2016-09-24 11:32     ` Eli Zaretskii

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