GNU bug report logs - #21616
[PATCH] Enable sorting of JSON object keys when encoding

Previous Next

Package: emacs;

Reported by: Simen Heggestøyl <simenheg <at> gmail.com>

Date: Sun, 4 Oct 2015 19:16:01 UTC

Severity: normal

Tags: patch

Done: Simen Heggestøyl <simenheg <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Simen Heggestøyl <simenheg <at> gmail.com>
Cc: 21616 <at> debbugs.gnu.org
Subject: bug#21616: [PATCH] Enable sorting of JSON object keys when encoding
Date: Thu, 12 Nov 2015 04:39:02 +0200
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.




This bug report was last modified 9 years and 189 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.