Skip to content

Why bytes.push instead of Buffer #12

Description

@manast

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions