Skip to content

Chunked downloads#149

Open
codemonium wants to merge 1 commit intomatrix-org:masterfrom
codemonium:chunked-downloads
Open

Chunked downloads#149
codemonium wants to merge 1 commit intomatrix-org:masterfrom
codemonium:chunked-downloads

Conversation

@codemonium
Copy link
Copy Markdown
Contributor

@codemonium codemonium commented Jan 4, 2023

Before this change, whenever the user would download an attachment, the client (Pantalaimon) would store all the data in memory while processing it. This causes significant memory usage spikes when downloading multiple large files at once. The high memory usage is a major problem when running Pantalaimon in a memory-constrained setting.

This change uses new matrix-nio functions to download and decrypt the attachments in chunks, which resolves the memory usage issues.

See also matrix-nio/matrix-nio#373

Before this change, whenever the user would download an attachment, the
client (Pantalaimon) would store all the data in memory while processing
it. This causes significant memory usage spikes when downloading
multiple large files at once. The high memory usage is a major problem
when running Pantalaimon in a memory-constrained setting.

This change uses new matrix-nio functions to download and decrypt the
attachments in chunks, which resolves the memory usage issues.
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