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 synchronize on the class while writing in FileUtil.fill(...) #1012

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

bertm
Copy link
Contributor

@bertm bertm commented Nov 30, 2024

By substituting the CipherInputStream that is used as a random number source by a simple MersenneTwister, we no longer need to synchronize on the FileUtil class for each 32k bytes written. The MersenneTwister itself is sufficiently cheap to create on the fly.

By substituting the CipherInputStream that is used as a random number
source by a simple MersenneTwister, we no longer need to synchronize
on the FileUtil class for each 32k bytes written. The MersenneTwister
itself is sufficiently cheap to create on the fly.
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