From 829d613daafd9359cbe2dcae809f0f242e0f7237 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 21 Mar 2016 12:39:57 -0700 Subject: [PATCH] buffer: docs-only deprecate SlowBuffer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the addition of `Buffer.allocUnsafeSlow(size)` `SlowBuffer` can be deprecated... but docs-only for now. PR-URL: https://github.com/nodejs/node/pull/5833 Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Trevor Norris Reviewed-By: Sakthipriyan Vairamani --- doc/api/buffer.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index a035cd694dc0a5..0f55664a34678b 100644 --- a/doc/api/buffer.markdown +++ b/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