[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: |
Mon, 01 Nov 2021 01:15:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Gregory Heytings <gregory@heytings.org> writes:
>>> * lisp/net/mailcap.el (mailcap-mime-info): Remove force argument to
>>> mailcap-parse-mailcaps. Fixes bug#51523.
>>
>> The mailcaps are being parsed on each invocation on purpose to catch
>> edits.
>>
>> The problem here is that it takes a long time to parse the file(s)
>> -- it should be pretty much instantaneous.
>>
>
> Hmm... On my computer, Stefan's recipe (benchmark-run 1 (mapcar
> #'mailcap-mime-info (mailcap-mime-types))) takes 0.5 s without the
> force argument, and 25 s with it.
Sorry, I didn't realise that his benchmark was different than mine:
(benchmark-run 1 (mapcar #'mailcap-mime-info (mailcap-mime-types)))
And that is indeed very slow. But I don't think any code is doing that?
The code is doing (mailcap-mime-info "application/octet-stream").
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Stefan Monnier, 2021/10/31
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Lars Ingebrigtsen, 2021/10/31
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Gregory Heytings, 2021/10/31
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Lars Ingebrigtsen, 2021/10/31
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Gregory Heytings, 2021/10/31
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Gregory Heytings, 2021/10/31
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Gregory Heytings, 2021/10/31
- bug#51523: 29.0.50; gnus-mime-view-part-externally very slow, Lars Ingebrigtsen, 2021/10/31