Issue 10314: Improve JSON encoding with sort_keys=True (original) (raw)

Issue10314

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/54523

classification

Title: Improve JSON encoding with sort_keys=True
Type: performance Stage:
Components: Library (Lib) Versions: Python 3.2

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pitrou, rhettinger
Priority: normal Keywords: patch

Created on 2010-11-04 16:31 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
jsonsort.patch pitrou,2010-11-04 16:31
Messages (3)
msg120418 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-11-04 16:31
This patch makes sorting of keys when encoding a dict into JSON faster by not calling pure Python code.
msg120419 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2010-11-04 16:50
+1
msg120420 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-11-04 16:51
Ok, committed in r86169.
History
Date User Action Args
2022-04-11 14:57:08 admin set github: 54523
2010-11-04 16:51:56 pitrou set status: open -> closedresolution: fixedmessages: +
2010-11-04 16:50:04 rhettinger set nosy: + rhettingermessages: +
2010-11-04 16:31:37 pitrou create

Supported by The Python Software Foundation,
Powered by Roundup

Copyright © 1990-2022, Python Software Foundation
Legal Statements