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

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]

Thanks for your time, Dmitry. Installed!

On Thu, Nov 12, 2015 at 3:39 AM, Dmitry Gutov <dgutov@yandex.ru> wrote:
> 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.

[-- Attachment #2: Type: text/html, Size: 742 bytes --]

      reply	other threads:[~2015-11-12 17:37 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
2015-11-12 17:37       ` Simen Heggestøyl [this message]

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=1447349853.2400.0@smtp.gmail.com \
    --to=simenheg@gmail.com \
    --cc=21616-done@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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.