bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51523: 29.0.50; gnus-mime-view-part-externally very slow


From: Lars Ingebrigtsen
Subject: bug#51523: 29.0.50; gnus-mime-view-part-externally very slow
Date: Sun, 31 Oct 2021 16:27:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> As the title says, I find this command terribly slow, in the sense that
> it takes several seconds for Emacs to give me a prompt asking for the
> mime type to use.  I usually use this command on PDF attachments (and
> the profile below was for a PDF labeled as application/octet-stream).

Hm.

(progn
  (require 'mailcap)
  (benchmark-run 1 (mailcap-mime-info "application/octet-stream")))

takes 0.02s for me.  Do you have very long and involved mailcap files or
something? 

>         3775  30%                - insert-file-contents
>         3695  30%                 - set-auto-coding
>         3647  29%                  - find-auto-coding
>         3308  27%                   - auto-coding-alist-lookup
>         2439  19%                      assoc-default
>         [...]

Looks like a significant amount of time is taken by
`find-auto-encoding'?  Isn't that odd?

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]