optimize DateTimeOffset.UtcNow by removing redundant verification#45281
Merged
adamsitnik merged 3 commits intodotnet:masterfrom Nov 30, 2020
Merged
optimize DateTimeOffset.UtcNow by removing redundant verification#45281adamsitnik merged 3 commits intodotnet:masterfrom
adamsitnik merged 3 commits intodotnet:masterfrom
Conversation
…ts 10% of time on Windows
Collaborator
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
stephentoub
reviewed
Nov 27, 2020
src/libraries/System.Private.CoreLib/src/System/DateTimeOffset.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Member
|
Need to change expected exception type in test |
…ate to make sure thrown exceptions do not change
Member
Author
thanks! I could not find the failure logs due to #45357 I was not sure about changing the thrown exception (it would be a breaking change?) so I've changed the order of passed arguments. |
Member
It's a more derived exception so would be ok; though the test was doing an exact match which is why it broke |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
cuts 10% of the time on Windows and contributes to the Caching TE benchmark
the Caching benchmark shows +4.5% RPS improvement on Windows: