Skip to content

refactor: change the native type for account IDs to reduce allocations #600

@tomyrd

Description

@tomyrd

One general comment: we frequently use account.to_bytes() to convert account ID to a vector of bytes. This results in allocations and I wonder if it would be better to use something like u128 or [u8; 15] as a "native" type for account ID.

Originally posted by @bobbinth in #591 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions