bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21616: [PATCH] Enable sorting of JSON object keys when encoding


From: Dmitry Gutov
Subject: bug#21616: [PATCH] Enable sorting of JSON object keys when encoding
Date: Thu, 12 Nov 2015 04:39:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0

Hi Simen,

On 11/11/2015 08:59 PM, Simen Heggestøyl wrote:

How about keeping the old encoding code as the default, and only do the
{hash-table, plist} → alist transform when the output is to be sorted?
That keeps new code to a minimum, and the they would need to be
transformed to an intermediate structure to be sorted anyway.

A patch implementing this suggestion is attached. Here are the same
benchmarks with the new patch applied:

LGTM, please install. Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]