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

Small optimization tweaks #268

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Conversation

RRRadicalEdward
Copy link
Contributor

Use SmallVec::from_slice instead of SmallVec::from as it can directly copy bytes.

Reference - https://docs.rs/smallvec/1.10.0/smallvec/struct.SmallVec.html#method.from_slice.

Use `SmallVec::from_slice` instead of `SmallVec::from` as it can directly copy bytes.

Reference -
https://docs.rs/smallvec/1.10.0/smallvec/struct.SmallVec.html#method.from_slice.
@cberner cberner merged commit f9246e6 into cberner:master Nov 7, 2023
9 checks passed
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