Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Chunked downloads#149

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

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

Conversation

@codemonium

@codemonium codemonium commented Jan 4, 2023

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant