|
From: | Simen Heggestøyl |
Subject: | bug#21616: [PATCH] Enable sorting of JSON object keys when encoding |
Date: | Thu, 12 Nov 2015 18:37:33 +0100 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |