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

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? #1332

Open
thibault-martinez opened this issue Apr 5, 2022 · 0 comments

Comments

@thibault-martinez
Copy link
Member

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 #1331 (comment)

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