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

From: "Basil L. Contovounesios" <[email-masked]>
Date: Sat, 27 Feb 2021 21:16:32 +0000

Dmitry Gutov <[email-masked]> writes:

> 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)

BTW, we could avoid creating a new buffer each time, e.g. as
json-encode-string did previously, but that comes with its own set of
problems that I think outweigh the benefits.

-- 
Basil