Subject: bug#23431: 25.0.93; EWW hangs

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 03 May 2016 19:47:17 +0200

Eli Zaretskii <[email-masked]> 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