Skip to content
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

Optimize memory usage for JSON streaming #809

Closed

Conversation

knutwalker
Copy link
Contributor

In case we are streaming an array into a number of JSON values, all parsed and streamed nodes are added to the root array, but this array is later thrown away. In order to reduce memory usage and not hold on to every JSON value streamed, we can keep the root array empty and just have it as a stream-is-complete marker.

@CLAassistant
Copy link

CLAassistant commented Oct 29, 2018

CLA assistant check
All committers have signed the CLA.

@graemerocher graemerocher added the status: under consideration The issue is being considered, but has not been accepted yet label Oct 30, 2018
@graemerocher
Copy link
Contributor

Applied manually to 1.0.x 6d76108

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: under consideration The issue is being considered, but has not been accepted yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants