Subject: Re: bug#46761: 28.0.50; Speed up json.el encoding

From: "Basil L. Contovounesios" <[email-masked]>
Date: Sat, 27 Feb 2021 19:30:59 +0000

Dmitry Gutov <[email-masked]> writes:

> Looking good.

Thanks.

> I'm guessing there is an approximate size where structures smaller than that
> size will get slower to encode because of this change (creating a temp buffer
> and switching to it are not entirely free),

Of course, e.g. {"a": true}.

> but I can't think of a use case where this would matter.

Agreed, because by the time a single with-temp-buffer becomes the
limiting factor, the encoding time for such small objects is trivially
small.

-- 
Basil