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

Commit

Permalink
perf: do not create new buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Dec 20, 2018
1 parent 8c39566 commit 4ef5dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = function builder (createChunker, ipld, createReducer, _options)
if (options.progress && typeof options.progress === 'function') {
options.progress(chunk.byteLength)
}
return Buffer.from(chunk)
return chunk
}),
asyncMap((buffer, callback) => {
if (options.rawLeaves) {
Expand Down

0 comments on commit 4ef5dbc

Please sign in to comment.