Skip to content

Avoid cloning of vectors in HexString #2657

@xgreenx

Description

@xgreenx

The GraphQL server coverts bytes into the hex string to return it to the user. During this convert process, we take vector by value.

Image

We have many cases where we clone vectors instead of passing it as a reference.

This issue is created to replace Vec<u8> with Cow<[u8]> or Cow<Vec<u8>> and allow usage of references.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions