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

FIX: Change bufio reader to handle huge json lines #11

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

HappyTobi
Copy link
Collaborator

Hi,

we have to switch the bufio Scanner to Reader because the json output per line can be bigger than the default Scanner buffer that is set internal.
It's possible to set / override the buffer but there isn't any good value, so I switched to the Reader implementation where huge lines / content can be handled in a simpler way.

Regards

@HappyTobi HappyTobi requested a review from ms-henglu March 5, 2024 15:01
Copy link
Owner

@ms-henglu ms-henglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making this PR! LGTM

@ms-henglu ms-henglu merged commit 9e9cb37 into ms-henglu:main Mar 6, 2024
4 checks passed
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.

2 participants