Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Increase JSON decoder buffer size to 4Mb #127

Merged
merged 1 commit into from
Jun 15, 2017
Merged

Increase JSON decoder buffer size to 4Mb #127

merged 1 commit into from
Jun 15, 2017

Conversation

juanjux
Copy link
Contributor

@juanjux juanjux commented Jun 14, 2017

This fix all "buffer size excedeed" problems with all the Python files I tested (all of the modules in Python 2.7 and 3.6 stdlibs, including some huge ones) but eventually a dynamic allocation alternative will be needed.

@codecov
Copy link

codecov bot commented Jun 14, 2017

Codecov Report

Merging #127 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #127   +/-   ##
=======================================
  Coverage   39.95%   39.95%           
=======================================
  Files          21       21           
  Lines        2115     2115           
=======================================
  Hits          845      845           
  Misses       1185     1185           
  Partials       85       85
Impacted Files Coverage Δ
protocol/jsonlines/decoder.go 77.77% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78dcc13...f13f33f. Read the comment docs.

@smola
Copy link
Member

smola commented Jun 15, 2017

We should use a growable buffer, but let's merge this as a temporary fix.

@smola smola merged commit df3e0da into bblfsh:master Jun 15, 2017
@juanjux juanjux deleted the fix/increasebuffer branch July 12, 2017 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants