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

Fixed #26 (Improve memory allocations; ditched io-streams) #27

Closed
wants to merge 3 commits into from

Conversation

adinapoli
Copy link
Contributor

This PR mainly fixes #26.

It also comes with the following breaking changes:

  • I've ditched io-streams in favour of streaming. The former, despite being a lovely library, wasn't the right fit for the job, because it uses a pre-allocated buffer which is not multiple of the blockSize, and this was creating lots of read and unRead, ultimately leading to huge memory spikes of 400+ MB on my machine, to decrypt a 1.22 GB file. The current implementation is constant at 2.4 MB of virtual memory.

@adinapoli
Copy link
Contributor Author

Tests needs amending before I can safely merge this.

@adinapoli
Copy link
Contributor Author

This is not working well as I would have hoped. I will need to come back to this.

@adinapoli adinapoli closed this Mar 28, 2017
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.

Decryption Performance profiling
1 participant