Fast Allocation of ArrayBuffer
with maxByteLength
#53680
Labels
buffer
Issues and PRs related to the buffer subsystem.
ArrayBuffer
with maxByteLength
#53680
Currently we have an optimization which turns off zero fill of
ArrayBuffers
during allocation through theBuffer.allocUnsafeSlow
method:This can be used to quickly allocate
ArrayBuffer
s:The problem is that this does not allow allocating
ArrayBuffer
s with a specifiedmaxByteLength
:Could we add some way to perform the allocation similarly? Maybe an option to
Buffer.allocateUnsafeSlow
?The text was updated successfully, but these errors were encountered: