-
Notifications
You must be signed in to change notification settings - Fork 103
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
Make DispatcherQueueSynchronizationContext faster and zero-alloc #1058
Closed
Sergio0694
wants to merge
11
commits into
microsoft:master
from
Sergio0694:feature/DispatcherQueueSynchronizationContext-opts
Closed
Make DispatcherQueueSynchronizationContext faster and zero-alloc #1058
Sergio0694
wants to merge
11
commits into
microsoft:master
from
Sergio0694:feature/DispatcherQueueSynchronizationContext-opts
Commits on Feb 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1d0aff2 - Browse repository at this point
Copy the full SHA 1d0aff2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c5fa96 - Browse repository at this point
Copy the full SHA 4c5fa96View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6bf066 - Browse repository at this point
Copy the full SHA e6bf066View commit details -
Remove static constructors from DispatcherQueueProxyHandler.Impl
This relies on Roslyn just compiling ReadOnlySpan<byte> arrays directly into a span mapping to .data in the loaded assembly. Those properties will be JITted to a single mov reading from a constant address, and the class will no longer have a static constructor at all
Configuration menu - View commit details
-
Copy full SHA for fb79f13 - Browse repository at this point
Copy the full SHA fb79f13View commit details -
Suppress warning about uninitialized field
IDispatcherQueue is just a type directly mapping to the native COM object, so the field is really just used to easily map to the vtable on that object
Configuration menu - View commit details
-
Copy full SHA for a4fbb4a - Browse repository at this point
Copy the full SHA a4fbb4aView commit details -
Revert "Remove static constructors from DispatcherQueueProxyHandler.I…
…mpl" This reverts commit d952216. This optimization currently works but results in fragile code as it's relying on an implementation detail which could change in the future. This could be reverted again latere on if/when we got explicit support for alignment for RVA fields (or, support for constant unmanaged buffers built-in).
Configuration menu - View commit details
-
Copy full SHA for 2869a87 - Browse repository at this point
Copy the full SHA 2869a87View commit details
Commits on Apr 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 52dd2dd - Browse repository at this point
Copy the full SHA 52dd2ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for a71a63d - Browse repository at this point
Copy the full SHA a71a63dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 17ebd48 - Browse repository at this point
Copy the full SHA 17ebd48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91f5a08 - Browse repository at this point
Copy the full SHA 91f5a08View commit details -
Configuration menu - View commit details
-
Copy full SHA for e95e80e - Browse repository at this point
Copy the full SHA e95e80eView commit details
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.