Skip to content

Potential optimization: use an Option #16

Description

@willemneal

I wonder if using an Option<i128> could reduce the storage costs down even further.

pub enum UtxoState {
Unspent(i128), // takes 1-byte tag + 16 bytes value
Spent, // only 1-byte tag (optimizing for read/write size)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions