Visitar URL original
fix: wrap BatchRequest InputStream with BufferedInputStream by Neenu1995 · Pull Request #1749 · googleapis/google-api-java-client · GitHub
Skip to content

fix: wrap BatchRequest InputStream with BufferedInputStream - #1749

Merged
gcf-merge-on-green[bot] merged 7 commits into
masterfrom
test-batchRequest-branch
Mar 18, 2021
Merged

gcf-merge-on-green[bot] merged 7 commits into
masterfrom
test-batchRequest-branch

Conversation

@Neenu1995

@Neenu1995 Neenu1995 commented Mar 15, 2021 •

Copy link
Copy Markdown
Contributor

If reading byte-by-byte from a GZipInputStream is slow, then wrapping in a BufferedInputStream should minimize this effect by reading in larger, buffered chunks.

Added a test to ensure that parsing a large BatchResponse does not take an exorbitant amount of time.

Fixes #1573 ☕️

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 15, 2021
@Neenu1995 Neenu1995 changed the title Test batch request branch chore: test BatchRequest with gzip encoding Mar 15, 2021
@chingor13
chingor13 marked this pull request as ready for review March 16, 2021 19:34
@chingor13
chingor13 requested a review from a team March 16, 2021 19:34
@Neenu1995 Neenu1995 added the automerge Merge the pull request once unit tests and other checks pass. label Mar 16, 2021
@chingor13 chingor13 removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 16, 2021
@chingor13 chingor13 changed the title chore: test BatchRequest with gzip encoding fix: wrap BatchRequest InputStream with BufferedInputStream Mar 16, 2021
@Neenu1995
Neenu1995 requested a review from lesv March 16, 2021 23:34

@stephaniewang526 stephaniewang526 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@Neenu1995 Neenu1995 added the automerge Merge the pull request once unit tests and other checks pass. label Mar 18, 2021
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 07346d8 into master Mar 18, 2021
@gcf-merge-on-green
gcf-merge-on-green Bot deleted the test-batchRequest-branch branch March 18, 2021 15:30
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

General, Gmail: BatchRequest for 25 gmail threads is very slow

3 participants