all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: Madhavan Krishnan <krishnanmadhavan000@gmail.com>, 45224@debbugs.gnu.org
Subject: bug#45224: 28.0.50; eww and GIFS (cpu usage shoots through the roof)
Date: Mon, 11 Apr 2022 18:49:46 +0200	[thread overview]
Message-ID: <87lewbmuol.fsf@gnus.org> (raw)
In-Reply-To: <87pmrlnsbe.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 31 Oct 2021 16:10:29 +0100")

Lars Ingebrigtsen <larsi@gnus.org> writes:

>> The struct also seems more clean to me.  Perhaps there are some
>> performance implications I'm not thinking of?  Or perhaps there is
>> some even better way to do the cache check than a struct, such as
>> using the "image struct" directly?
>
> The problem is that it's not well-defined which elements in the plist
> really affect display and which ones don't.  If you change :max-width of
> an image plist, then it should definitely affect display, but if you
> change :gazonk, then it shouldn't.

And as I was looking at the image stuff anyway, I've now gone ahead and
added filtering for the animation elements from the image cache.

In my test GIF image, Emacs used to use 30% CPU when animating it.
Creating the GIF cache took that down to 3%.  Fixing the first-level
image cache takes that down to 1%.

So finally Emacs should be usable when displaying a buffer with a bunch
of animated images.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-04-11 16:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-13 12:45 bug#45224: 28.0.50; eww and GIFS (cpu usage shoots through the roof) Madhavan Krishnan
2020-12-14 17:05 ` Lars Ingebrigtsen
     [not found]   ` <87lfe0fbuv.fsf@gmail.com>
     [not found]     ` <877dpkfbf9.fsf@gmail.com>
2020-12-15  5:41       ` Lars Ingebrigtsen
2020-12-18  9:39         ` Madhavan Krishnan
2020-12-18  9:48           ` Lars Ingebrigtsen
2021-10-31  1:50             ` Stefan Kangas
2021-10-31 15:10               ` Lars Ingebrigtsen
2022-04-11 16:49                 ` Lars Ingebrigtsen [this message]
2022-04-11 17:36                   ` Eli Zaretskii
2021-10-31  1:54             ` Stefan Kangas
2022-04-11 12:38   ` Lars Ingebrigtsen
2022-04-11 12:40     ` Lars Ingebrigtsen

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=87lewbmuol.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=45224@debbugs.gnu.org \
    --cc=krishnanmadhavan000@gmail.com \
    --cc=stefan@marxist.se \
    /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.