GNU bug report logs -
#40355
[PATCH] Implement caching for libravatar lookup
Previous Next
Reported by: Philip K <philip <at> warpmail.net>
Date: Tue, 31 Mar 2020 18:04:02 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 40355 <at> debbugs.gnu.org (full text, mbox):
Philip K <philip <at> warpmail.net> writes:
> Checking if a domain has an avatar server associated with it requires
> at most two (synchronous) DNS queries, at least to ultimately default
> to "libravatar.org". Caching the results of domain lookups reduced the
> evaluation time (on my machine) from ~0.3s to an instantaneous
> evaluation.
>
> * lisp/image/gravatar.el (gravatar--service-libravatar): Check if
> domain has already been resolved before staring DNS queries
> (gravatar-libravatar-cache): New variable.
The code has changed a bit (and become asynchronous), but adding caching
would be nice.
Can you re-spin the patch on top of the current implementation?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 274 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.