GNU bug report logs - #23431
Displaying animated GIFs can make Emacs unresponsive

Previous Next

Package: emacs;

Reported by: Juliusz Chroboczek <jch <at> pps.univ-paris-diderot.fr>

Date: Tue, 3 May 2016 03:31:01 UTC

Severity: normal

Found in version 25.0.93

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #70 received at 23431 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 23431 <at> debbugs.gnu.org, jch <at> pps.univ-paris-diderot.fr
Subject: Re: bug#23431: 25.0.93; EWW hangs
Date: Tue, 03 May 2016 19:47:17 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> The top of the profile is this:
>
>   - timer-event-handler                                            1149  65%
>    - apply                                                         1149  65%
>     - image-animate-timeout                                        1110  63%
>        image-multi-frame-p                                         1110  63%
>     - url-queue-run-queue                                            39   2%
>
> Any idea why is image-multi-frame-p do expensive?

Hm...  No, I would have expected that to be fast.  It's basically just a
call to `image-metadata', isn't it?  And that should be caching the
data, I think?

Hm...  That function basically just does:

      struct frame *f = decode_window_system_frame (frame);
      ptrdiff_t id = lookup_image (f, spec);
      struct image *img = IMAGE_FROM_ID (f, id);
      ext = img->lisp_data;


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




This bug report was last modified 9 years and 69 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.