Skip to content
Browse files

buffer: docs-only deprecate SlowBuffer

With the addition of `Buffer.allocUnsafeSlow(size)`
`SlowBuffer` can be deprecated... but docs-only for now.

PR-URL: #5833
Reviewed-By: Сковорода Никита Андреевич <>
Reviewed-By: Trevor Norris <>
Reviewed-By: Sakthipriyan Vairamani <>
  • Loading branch information...
jasnell committed Mar 21, 2016
1 parent 6275249 commit 3fe204c7009c9f629dfbca03a7221c6b1384777b
Showing with 6 additions and 0 deletions.
  1. +6 −0 doc/api/buffer.markdown
@@ -1783,6 +1783,9 @@ Note that this is a property on the `buffer` module as returned by

## Class: SlowBuffer

Stability: 0 - Deprecated: Use
[`Buffer.allocUnsafeSlow(size)`][buffer_allocunsafeslow] instead.

Returns an un-pooled `Buffer`.

In order to avoid the garbage collection overhead of creating many individually
@@ -1813,6 +1816,9 @@ has observed undue memory retention in their applications.

### new SlowBuffer(size)

Stability: 0 - Deprecated: Use
[`Buffer.allocUnsafeSlow(size)`][buffer_allocunsafeslow] instead.

* `size` Number

Allocates a new `SlowBuffer` of `size` bytes. The `size` must be less than

0 comments on commit 3fe204c

Please sign in to comment.
You can’t perform that action at this time.