all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: "Simen Heggestøyl" <simenheg@gmail.com>
Cc: 21616@debbugs.gnu.org
Subject: bug#21616: [PATCH] Enable sorting of JSON object keys when encoding
Date: Thu, 12 Nov 2015 04:39:02 +0200	[thread overview]
Message-ID: <5643FBC6.2000401@yandex.ru> (raw)
In-Reply-To: <1447268373.11049.0@smtp.gmail.com>

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	other threads:[~2015-11-12  2:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-04 19:15 bug#21616: [PATCH] Enable sorting of JSON object keys when encoding Simen Heggestøyl
2015-11-09  0:01 ` Dmitry Gutov
2015-11-11 18:59   ` Simen Heggestøyl
2015-11-12  2:39     ` Dmitry Gutov [this message]
2015-11-12 17:37       ` Simen Heggestøyl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5643FBC6.2000401@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=21616@debbugs.gnu.org \
    --cc=simenheg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.