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

Don't call file.length() for every append if we can avoid it #6

Merged

Conversation

jaredstehler
Copy link

@jaredstehler jaredstehler commented Oct 22, 2024

File.length() can be an expensive operation; we found that by using a CountingOutputStream we could avoid this method call in many cases, leading to a sizeable performance gain.

Upstream pr qos-ch#790

@jaredstehler jaredstehler merged commit 6eb5965 into branch_1.3.x_hubspot Oct 22, 2024
1 check passed
@jaredstehler jaredstehler deleted the revert-5-revert-2-js-counting-oos branch October 22, 2024 15:18
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.

1 participant