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

Heavy RAM usage when encrypting large file #671

Open
shujaatak opened this issue Feb 9, 2025 · 2 comments
Open

Heavy RAM usage when encrypting large file #671

shujaatak opened this issue Feb 9, 2025 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@shujaatak
Copy link

I was testing abcrypt, I noticed that when encrypting a large video file of size like 4GB consumed more than 7GB of RAM.

It would be nice if the data is fetched, encrypted, and saved in the output file block by block (like 1MB, or 100MB) so this way the RAM usage will be limited to max 2 Blocks. For example, if the the chosen block size is 10MB then 10MB will be read from the plaintext file and encrypted into cyphertext of around 10MB hence, total of 20MB will be used.

@sorairolake
Copy link
Owner

I think it may be possible to solve this issue by implementing traits such as Read and Write.

@sorairolake sorairolake added enhancement New feature or request help wanted Extra attention is needed labels Feb 9, 2025
@sorairolake
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants