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

Small performance improvements #88

Merged
merged 6 commits into from
May 21, 2021
Merged

Small performance improvements #88

merged 6 commits into from
May 21, 2021

Conversation

mbien
Copy link
Member

@mbien mbien commented May 18, 2021

Noticed that the cache copies its contents twice since flush() + close() are used in sequence in the entire codebase. CachedContent.close() will now only update the content if something changed.

  • added some other minor performance related commits
  • fixed one leaking input stream
  • point release dependency updates

mbien added 2 commits May 18, 2021 03:57
 - stream.toByteArray() is now only called in close() if the stream index didn't move since flush()
 - some modernizations: AutoCloseable + made some fields final.
@mbien mbien requested a review from snoopdave May 18, 2021 02:29
Copy link
Contributor

@snoopdave snoopdave left a comment

Choose a reason for hiding this comment

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

LGTM!

@mbien mbien merged commit 24e6f84 into apache:master May 21, 2021
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