I wonder why the encoder is using a standard js array and calls to push. Wouldn't be much faster to work using a Buffer?
I understand the challenges of growing the buffer, but it should be much faster considering the overhead of a function call for every element written to the array.
I wonder why the encoder is using a standard js array and calls to
push. Wouldn't be much faster to work using a Buffer?I understand the challenges of growing the buffer, but it should be much faster considering the overhead of a function call for every element written to the array.