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

Commit 4ef5dbc

Browse files
committed
perf: do not create new buffers
1 parent 8c39566 commit 4ef5dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builder/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = function builder (createChunker, ipld, createReducer, _options)
110110
if (options.progress && typeof options.progress === 'function') {
111111
options.progress(chunk.byteLength)
112112
}
113-
return Buffer.from(chunk)
113+
return chunk
114114
}),
115115
asyncMap((buffer, callback) => {
116116
if (options.rawLeaves) {

0 commit comments

Comments
 (0)