[PATCH] native inline gravatar

Jason A. Donenfeld Jason at zx2c4.com
Wed Jul 4 02:14:57 CEST 2018


On Wed, Jul 4, 2018 at 2:01 AM Andy Green <andy at warmcat.com> wrote:
> doesn't use any filters for syntax highlight and markdown render, it's
> all done in clientside JS.  The gravatar is done using this patch.

If you're into doing things clientside, you could do gravatar
clientside too of course...

> This of course is a big performance win on the server since no
> subprocesses spawned at all.  Even on large files on an Android tablet,
> it's quick.

It's worth noting that Lua does not spawn sub processes, so if you do
rendering from Lua, you're in good shape.

However, there are indeed advantages -- such as bandwidth -- to doing
this all clientside.

> OpenSSL is accelerated for some things on some architectures, it's true.
>   If that was the actual problem that can be ported as a special case of
> x86_64.

We're not going to start copy and pasting OpenSSL into cgit to
superoptimize our own MD5 implementation...


More information about the CGit mailing list