Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
perf: small bl (#101)
Browse files Browse the repository at this point in the history
This imports the `BufferList` class that does not extend duplex stream. This gets us one step closer to removing readable-stream from the bundle.
  • Loading branch information
Alan Shaw authored Feb 13, 2020
1 parent d9956ea commit 7da79b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coder/decode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const varint = require('varint')
const { BufferList } = require('bl')
const BufferList = require('bl/BufferList')

// Decode a chunk and yield an _array_ of decoded messages
module.exports = source => (async function * decode () {
Expand Down
2 changes: 1 addition & 1 deletion src/coder/encode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const varint = require('varint')
const { BufferList } = require('bl')
const BufferList = require('bl/BufferList')

const POOL_SIZE = 10 * 1024

Expand Down

0 comments on commit 7da79b6

Please sign in to comment.