Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve BitVecValue representation. #1

Open
ekiwi opened this issue Sep 26, 2024 · 0 comments
Open

Improve BitVecValue representation. #1

ekiwi opened this issue Sep 26, 2024 · 0 comments

Comments

@ekiwi
Copy link
Collaborator

ekiwi commented Sep 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant