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

Test char formatting, replace mem::uninitialized with MaybeUninit #57

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

saethlin
Copy link

core::mem::uninitialized doesn't actually produce uninitialized memory anymore, as a mitigation. So it would be perf-equivalent or possibly faster to just use [0u8; 4] here. But just in case someone cares about the performance of this code path, I ported over some standard library internals and adapted them to this use case so we can use an uninit buffer.

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