[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46761: 28.0.50; Speed up json.el encoding
From: |
Basil L. Contovounesios |
Subject: |
bug#46761: 28.0.50; Speed up json.el encoding |
Date: |
Sat, 27 Feb 2021 19:30:59 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Dmitry Gutov <dgutov@yandex.ru> 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