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: Mon, 01 Nov 2021 01:21:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Gregory Heytings <gregory@heytings.org> writes:

> BTW, does it make sense to parse it on each invocation, even when this
> happens in a loop?  Would it not make sense to cache the result during
> a limited amount of time?

Ideally, it should keep track of the file timestamps and re-parse when
they've changed.

But I didn't think this code was used in a loop anywhere, so it didn't
seem like it was worth the bother.

This reminds me of something I've wanted more than a handful of times
-- it'd be nice to have a function/macro like

 (when-file-has-changed "/etc/mailcap"
   (do-the-parsing))

It'd just have to maintain a hash table.

-- 
(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]