Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Aug 8, 2024

Arc was previously gated on std but is available as alloc::sync::Arc.

Since BoxedMontyForm depends on alloc anyway, we can unconditionally use Arc for the params.

Using Arc avoids having to clone/duplicate the params every time a new BoxedMontyForm value is made with the same params.

`Arc` was previously gated on `std` but is available as
`alloc::sync::Arc`.

Since `BoxedMontyForm` depends on `alloc` anyway, we can unconditionally
use `Arc` for the params.

Using `Arc` avoids having to clone/duplicate the params every time a new
`BoxedMontyForm` value is made with the same params.
@tarcieri tarcieri merged commit 759684d into master Aug 8, 2024
@tarcieri tarcieri deleted the boxed-monty-form/always-use-arc-for-params branch August 8, 2024 17:24
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
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.

2 participants