Skip to content

fix: use flat buffer in buildPieceRoot to reduce memory usage by ~2x#1

Merged
v1rtl merged 1 commit into
mainfrom
fix-filecoin-oom
Apr 10, 2026
Merged

fix: use flat buffer in buildPieceRoot to reduce memory usage by ~2x#1
v1rtl merged 1 commit into
mainfrom
fix-filecoin-oom

Conversation

@v1rtl
Copy link
Copy Markdown
Contributor

@v1rtl v1rtl commented Apr 10, 2026

Replaces millions of individual Uint8Array(32) objects with a single flat buffer and in-place Merkle tree reduction. For a 267MB input (16M leaves), this cuts RSS from ~7.2GB to ~3.2GB, fixing OOM on GitHub CI workers with 4GB limit.

Closes omnipin/omnipin#132

Replaces millions of individual Uint8Array(32) objects with a single
flat buffer and in-place Merkle tree reduction. For a 267MB input
(16M leaves), this cuts RSS from ~7.2GB to ~3.2GB, fixing OOM on
GitHub CI workers with 4GB limit.

Closes omnipin/omnipin#132
@v1rtl v1rtl merged commit 35e6ba9 into main Apr 10, 2026
0 of 2 checks passed
@v1rtl v1rtl deleted the fix-filecoin-oom branch April 10, 2026 11:16
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.

Deploying to IPFS balloons memory usage

1 participant