Skip to content

Improve BitVecValue representation. #1

@ekiwi

Description

@ekiwi

Since we never resize the underlying vector, we should be able to use a Box<[Word]> and thus reduce the size of a BitVecValue from 32 to 24 bytes. This means that we have to implement the SmallVec optimization ourselves. This may best be accomplished by making an enum like enum Data { U64(u64), U128(128), Big(Box<[Word]>) }. This way, we may be able to improve the performance when executing operations on values with less than 128 bits.

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