-
Notifications
You must be signed in to change notification settings - Fork 9
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
Use MaybeUninit
in place of 0-initialized u8 arrays
#146
Comments
I often opted for |
I suspect the perf hit comes from It may also be that I dunno. Everything I just said, I'd have expected the compiler to take care of when using |
Oh -- another thing we should consider is using |
Well, I'd expect post-mono/inlining optimizations to see that the lengths are the same and delete those branches/increments. I don't believe it has anything to do with it being generic. |
Originally posted by @Kixunil (in a particular case) in #123 (comment)
There may be other cases -- typically with code Tobin or I touched we were not looking for unsafe optimizations.
The text was updated successfully, but these errors were encountered: