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

Performance: Allow large sets of JSON docs without StackOverflows #21

Merged
merged 1 commit into from
May 11, 2024

Conversation

bblommers
Copy link
Collaborator

The previous implementation would call parse() recursively for every document at the root level.

If a file contains more than 300 documents, that quickly becomes a problem.

This PR changes the JsonParser to yield documents instead as and when they come, improving performance and removing the need for any recursion

@bblommers bblommers force-pushed the performance/remove-stackoverflow-for-large-docsets branch from 2e52445 to ebf4901 Compare May 10, 2024 19:47
@bblommers bblommers force-pushed the performance/remove-stackoverflow-for-large-docsets branch from ebf4901 to 9b48238 Compare May 10, 2024 19:51
@bblommers bblommers merged commit cec43ac into main May 11, 2024
14 checks passed
@bblommers bblommers deleted the performance/remove-stackoverflow-for-large-docsets branch May 11, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant