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

BoxedUint: change internal representation to Box<[Limb]> #305

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

tarcieri
Copy link
Member

It was previously a Vec<Limb>, however this encourages changing the precision of an existing BoxedUint when they're supposed to be fixed-precision.

Using Box<[Limb]> decreases the on-stack size by eliminating the capacity and discourages changing the underlying precision, whereas Vec makes that convenient.

It was previously a `Vec<Limb>`, however this encourages changing the
precision of an existing `BoxedUint` when they're supposed to be
fixed-precision.

Using `Box<[Limb]>` decreases the on-stack size by eliminating the
capacity and discourages changing the underlying precision, whereas
`Vec` makes that convenient.
@tarcieri tarcieri force-pushed the boxed-uint/use-boxed-slice-internally branch from 230382e to c02e74e Compare November 23, 2023 18:55
@tarcieri tarcieri merged commit 647dec5 into master Nov 23, 2023
15 checks passed
@tarcieri tarcieri deleted the boxed-uint/use-boxed-slice-internally branch November 23, 2023 18:58
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

Successfully merging this pull request may close these issues.

1 participant