bee icon indicating copy to clipboard operation
bee copied to clipboard

Would it make sense to pre-allocate this `HashSet` with a capacity of the sum of `input_native_tokens.len()` and `output_native_tokens.len()` so this doesn't ever have to re-allocate?

Open thibault-martinez opened this issue 2 years ago • 0 comments

Would it make sense to pre-allocate this HashSet with a capacity of the sum of input_native_tokens.len() and output_native_tokens.len() so this doesn't ever have to re-allocate?

Originally posted by @Alex6323 in https://github.com/iotaledger/bee/pull/1331#discussion_r843020216

thibault-martinez avatar Apr 05 '22 16:04 thibault-martinez