ipfs-inactive / js-ipfs-unixfs-importer

[ARCHIVED] JavaScript implementation of the UnixFs importer used by IPFS
MIT License
5 stars 4 forks source link

perf: avoid unnecessary buffer copy #40

Closed achingbrain closed 4 years ago

achingbrain commented 4 years ago

The pending array is emptied every iteration so just pass the file chunk directly into the rabin chunker instead.

achingbrain commented 4 years ago

Fixes #35