-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Buffer increase #738
Buffer increase #738
Conversation
This was done to fix a problem for a package with a really long list of dependencies. It would be nice if this kind of values are configurable via a config for future, to avoid editing the code for custom use cases. thanks to Sorin Pop, who found and fixed the issue in our internal system :)
fix big list of dependency problems (up to 2MB)
Codecov Report
@@ Coverage Diff @@
## master #738 +/- ##
==========================================
+ Coverage 59.17% 59.19% +0.01%
==========================================
Files 50 50
Lines 6183 6185 +2
==========================================
+ Hits 3659 3661 +2
Misses 2123 2123
Partials 401 401
Continue to review full report at Codecov.
|
This way `bufio.Scanner` would allocate initial buffer of default size, buf might still grow to maximum defined size.
@strajansebastian thanks for the PR, I have added some changes and unit-tests (I borrowed your sample file), please let me know if that looks good to you |
@smira everything looks good from my point of view. Thanks for the help! |
Increase buffer size for dependency list to up to 2MB of package names.
Fixes #
Requirements
All new code should be covered with tests, documentation should be updated. CI should pass.
Description of the Change
Checklist
AUTHORS