Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: uploadCarWithStat avoids copying stat.carBytes via Blob constru…
…ction (#2543) … and instead wraps the stat.carBytes Uint8Array as a BlobLike Context * trying to make changes that help these code paths avoid the 'out of memory' others saw when testing on staging Motivation: * removing this `new Blob` could get rid of a memory allocation that could be contributing to 'out of memory' * I think by passing a BlobLike to `uploadCAR` here and not a whole blob, there will not be downstream copies of the underlying bytes because this car BlobLike, once passed to `uploadCAR` will get passed to a `CAR.BlockStream` that streams out blocks without re-buffering the whole car bytes in memory https://github.com/web3-storage/w3up/blob/main/packages/upload-client/src/index.js#L107
- Loading branch information