Repository navigation
Use memset in even more cases - #1273
Merged
Stephan T. Lavavej (StephanTLavavej) merged 17 commits intoOct 29, 2020
Merged
Stephan T. Lavavej (StephanTLavavej) merged 17 commits into
Stephan T. Lavavej (StephanTLavavej) merged 17 commits into
Conversation
Member
|
I pushed a merge to |
Contributor
Author
Looks good |
Co-authored-by: Casey Carter
Casey Carter (CaseyCarter)
approved these changes
Oct 3, 2020
Stephan T. Lavavej (StephanTLavavej)
requested changes
Oct 28, 2020
Stephan T. Lavavej (StephanTLavavej)
left a comment
Member
There was a problem hiding this comment.
Thanks for implementing this optimization! I found one bug involving floating-point negative zero, but otherwise this looks very solid.
Co-authored-by: Stephan T. Lavavej
Adam Bucior (AdamBucior)
requested a review
from Stephan T. Lavavej (StephanTLavavej)
October 28, 2020 09:37
Casey Carter (CaseyCarter)
approved these changes
Oct 28, 2020
`static_cast<_Ty>(0)` emits this warning for object pointers, function pointers, and `nullptr_t`. We can avoid this warning by using empty braces to request zero-initialization.
Stephan T. Lavavej (StephanTLavavej)
approved these changes
Oct 28, 2020
Member
|
Looks great! I've pushed three small changes (FYI Casey Carter (@CaseyCarter)) and merged with
|
Casey Carter (CaseyCarter)
approved these changes
Oct 29, 2020
Member
|
Thanks again for this optimization, automatically making user code faster! This will ship in VS 2019 16.9 Preview 2. 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Another small PR to optimize
(ranges::)(uninitialized_)fill(_n). I applied the optimization only to the_HAS_IF_CONSTEXPRbranch because withoutif constexprit becomes very tricky to implement and I don't know how long the!_HAS_IF_CONSTEXPRbranch will live. Part of #431.