-
Notifications
You must be signed in to change notification settings - Fork 99
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
Stream cleanup #551
base: develop
Are you sure you want to change the base?
Stream cleanup #551
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #551 +/- ##
===========================================
- Coverage 99.10% 99.10% -0.01%
===========================================
Files 67 67
Lines 6058 6040 -18
===========================================
- Hits 6004 5986 -18
Misses 54 54
Continue to review full report at Codecov.
|
|
These affect performance |
Yeah, I see that. Do you know the reason? The changes should have been purely cosmetical? |
The local stream allows the compiler to assume there is no aliasing |
@sdkrystian knows more |
@grisumbras @vinniefalco is correct -- creating the local streams allows for the compiler to assume no aliasing. Without them, it must operate under the assumption that the referenced stream may be modified by writes through aliasable pointer types within the function (or ones deeper within the call stack). |
In retrospect maybe we should have left a comment on the declaration for |
Fix #213