Skip to content

Conversation

newpavlov
Copy link
Member

In practice we should never get number of read bytes bigger than buffer length, but compiler can not prove it, so it generates a panic branch for it. This change does not help with performance (compiler still generates branch on most targets), but makes resulting binary a bit smaller.

@josephlr josephlr merged commit 9ceb7e5 into master Jan 27, 2023
@josephlr josephlr deleted the tweak_sys_fill_exact branch January 27, 2023 23:30
@newpavlov newpavlov mentioned this pull request Apr 2, 2023
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