Skip to content

Commit 3fe204c

Browse files
committed
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: Сковорода Никита Андреевич <[email protected]> Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 6275249 commit 3fe204c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎doc/api/buffer.markdown‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,6 +1783,9 @@ Note that this is a property on the `buffer` module as returned by
17831783

17841784
## Class: SlowBuffer
17851785

1786+
Stability: 0 - Deprecated: Use
1787+
[`Buffer.allocUnsafeSlow(size)`][buffer_allocunsafeslow] instead.
1788+
17861789
Returns an un-pooled `Buffer`.
17871790

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

18141817
### new SlowBuffer(size)
18151818

1819+
Stability: 0 - Deprecated: Use
1820+
[`Buffer.allocUnsafeSlow(size)`][buffer_allocunsafeslow] instead.
1821+
18161822
* `size` Number
18171823

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

0 commit comments

Comments
 (0)