Avoid zeroing large stack buffers in stdio on Windows by thomcc · Pull Request #...
source link: https://github.com/rust-lang/rust/pull/101193
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Member
thomcc commented 9 days ago
Does what it says on the tin, using [MaybeUninit<u16>; N]
instead of [0u16; N]
. These buffers seem to be around 8kb, which is big enough that this is likely to be a very nice perf boost to stdio-heavy windows code.
r? @ChrisDenton
(Note: this PR also has a commit that adds windows to CI, but as it mentions I'll revert that after it comes out green -- I can only do a check build on the machine I'm typing this on)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK