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

Optimization for inflating data #1294

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

tdrwenski
Copy link
Contributor

@tdrwenski tdrwenski commented Jan 25, 2024

Description of Changes

A possible performance improvement of Deflate::decode.

  • Use try with resources to ensure resources are always closed
  • Initialize ByteArrayOutputStream with approximate capacity to avoid extra resizes (this is the capacity used in TDS 4.x)

@tdrwenski tdrwenski marked this pull request as ready for review January 25, 2024 23:41
@haileyajohnson haileyajohnson merged commit 5a35e5b into Unidata:maint-5.x Jan 26, 2024
10 checks passed
@tdrwenski tdrwenski deleted the out-of-memory-error branch February 26, 2024 16:09
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