-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Optimize _Non_propagating_cache #2118
Optimize _Non_propagating_cache #2118
Conversation
private: | ||
union { | ||
_Ty _Val; | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This affects ABI by omitting bool _Engaged = false;
(and _Non_propagating_cache
is a data member of _Join_view_base
). That's acceptable because <ranges>
is ABI-unlocked, but we'll need to be certain to port all <ranges>
changes to 16.11.
I'm mirroring this to an MSVC-internal PR. Please notify me if any further changes are pushed. |
Thanks for improving the performance here before the ABI lockdown! 🚀 🔐 😸 |
Adds a specialization of
_Non_propagating_cache
for trivially destructible types. Also adds a way to disable it for compatibility with #2042.