Re: [PATCHv8 5/7] gitweb: gravatar url cache

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCHv8 5/7] gitweb: gravatar url cache

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:47:00

Giuseppe Bilotta [off-list ref] writes:
+# Rather than recomputing the url for an email multiple times, we cache it
+# after the first hit. This gives a visible benefit in views where the avatar
+# for the same email is used repeatedly (e.g. shortlog).
+# The cache is shared by all avatar engines (currently gravatar only), which
+# are free to use it as preferred. Since only one avatar engine is used for any
+# given page, there's no risk for cache conflicts.
Is it "any given page", or "any given e-mail"?

Re: [PATCHv8 5/7] gitweb: gravatar url cache

From: Giuseppe Bilotta <hidden>
Date: 2016-06-15 22:47:00

On Tue, Jun 30, 2009 at 10:38 PM, Junio C Hamano[off-list ref] wrote:
Giuseppe Bilotta [off-list ref] writes:
quoted
+# Rather than recomputing the url for an email multiple times, we cache it
+# after the first hit. This gives a visible benefit in views where the avatar
+# for the same email is used repeatedly (e.g. shortlog).
+# The cache is shared by all avatar engines (currently gravatar only), which
+# are free to use it as preferred. Since only one avatar engine is used for any
+# given page, there's no risk for cache conflicts.
Is it "any given page", or "any given e-mail"?
It's 'page' as in HTML file served by the script. I couldn't find a
better way to express that.


-- 
Giuseppe "Oblomov" Bilotta
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help