block-write-stream

1.0.0 • Public • Published

BlockWriteStream

npm npm license npm downloads

Garbage Collected block write stream

Install via npm

$ npm install --save block-write-stream

Usage

If run in a node process with --expose-gc enabled, it will trigger GC mark & sweep and scavenge every couple of writes to avoid the Buffers not being GCed in a timely manner, greatly reducing memory consumption. For details, see https://github.com/nodejs/node/issues/6078.

var BlockWriteStream = require('block-write-stream')
var writeStream = new BlockWriteStream({
  path: '/dev/rdisk2',
  flags: 'w',
})

Package Sidebar

Install

npm i block-write-stream

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jhermsmeier