-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-95382: Improve performance of json encoder with indent #118105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c1cfcf5
Fix docstring of _json.Encoder
eendebakpt 30f2e72
Implement indent for _json
eendebakpt 1da39f3
refactor
eendebakpt 0d85551
update comments
eendebakpt cc02a13
fix decrefs
eendebakpt a444701
Apply suggestions from code review
eendebakpt 8d4d48a
Merge branch 'main' into json_c_indent
JelleZijlstra ed989b8
review comments
eendebakpt 5df567b
whitespace
eendebakpt 5fdc279
whitespace
eendebakpt 1ec550f
Merge branch 'main' into json_c_indent
eendebakpt 5e47a41
address review comments
eendebakpt eefc508
Merge branch 'main' into json_c_indent
eendebakpt a7f4bc6
pep7
eendebakpt 35601c7
pep7
eendebakpt 311b7df
Update Modules/_json.c
eendebakpt ed2c806
Update Modules/_json.c
eendebakpt 2faf554
Merge branch 'main' into json_c_indent
eendebakpt a407b84
review comments
eendebakpt ac86ee4
Update Modules/_json.c
eendebakpt 3b55d64
review comments
eendebakpt bb4ff43
rename newline_indent variables
eendebakpt 9ef9332
code style
eendebakpt ed029a6
rename variable
eendebakpt 36e3313
Update Modules/_json.c
eendebakpt b69d08e
Merge branch 'main' into json_c_indent
eendebakpt e78ff6a
📜🤖 Added by blurb_it.
blurb-it[bot] 5c40126
Update Misc/NEWS.d/next/Core and Builtins/2024-05-03-18-01-26.gh-issu…
eendebakpt a43f2f2
update news entry
eendebakpt f2b0c06
Merge branch 'main' into json_c_indent
eendebakpt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Core and Builtins/2024-05-03-18-01-26.gh-issue-95382.73FSEv.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Improve performance of :func:`json.dumps` and :func:`json.dump` when using the argument *indent*. Depending on the data the encoding using | ||
:func:`json.dumps` with *indent* can be up to 2 to 3 times faster. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.