You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
More efficient formatting of ints and floats in json #70906
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2016-04-10.11:52:51.605>created_at=<Date2016-04-09.10:06:03.337>labels= ['extension-modules', 'type-feature', 'library']
title='More efficient formatting of ints and floats in json'updated_at=<Date2016-04-10.11:52:51.604>user='https://github.com/serhiy-storchaka'
Proposed patch provide more efficient solution of bpo-18264. Instead of creating new int or float object and then converting it to string, the patch directly uses functions that does int and float conversion to string.
Activity
serhiy-storchaka commentedon Apr 9, 2016
Proposed patch provide more efficient solution of bpo-18264. Instead of creating new int or float object and then converting it to string, the patch directly uses functions that does int and float conversion to string.
rhettinger commentedon Apr 9, 2016
+1 This is a nice improvement.
gvanrossum commentedon Apr 9, 2016
Please also backport to 3.5.2...
On Saturday, April 9, 2016, Raymond Hettinger <report@bugs.python.org>
wrote:
serhiy-storchaka commentedon Apr 9, 2016
There is similar issue with unneeded strings copying: bpo-26057.
python-dev commentedon Apr 10, 2016
New changeset 4d4febb76864 by Serhiy Storchaka in branch '3.5':
Issue bpo-26719: More efficient formatting of ints and floats in json.
https://hg.python.org/cpython/rev/4d4febb76864
New changeset 36b15a9776ae by Serhiy Storchaka in branch 'default':
Issue bpo-26719: More efficient formatting of ints and floats in json.
https://hg.python.org/cpython/rev/36b15a9776ae