Skip to content

Conversation

hanabi1224
Copy link

This PR adds fn allocation_size(&self)->usize to BigUint and BigInt that is similar to hashbrown::HashMap::allocation_size. Please let me know your feedback

https://docs.rs/hashbrown/latest/hashbrown/struct.HashMap.html#method.allocation_size

Returns the total amount of memory allocated internally by the hash set, in bytes.
The returned number is informational only. It is intended to be primarily used for memory profiling.

@hanabi1224 hanabi1224 marked this pull request as ready for review August 11, 2025 12:50
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