Remove IsEmpty workaround in Span and ReadOnlySpan#66865
Remove IsEmpty workaround in Span and ReadOnlySpan#66865AaronRobinsonMSFT merged 4 commits intodotnet:mainfrom
IsEmpty workaround in Span and ReadOnlySpan#66865Conversation
…adOnly}Span.IsEmpty (dotnet/coreclr#19640)" This reverts commit 82bd67f.
|
Tagging subscribers to this area: @dotnet/area-system-runtime Issue DetailsFix #64514 /cc @deeprobin
|
deeprobin
left a comment
There was a problem hiding this comment.
Hey, I took a look at the pull request.
I still have a small change suggestion to the documentation comments so that this corresponds to the already existing scheme. In my opinion there is nothing against merging this then.
Generally, people wait until an issue is no longer untriaged before writing code.
Since this is a small change, it probably wouldn't be too bad if the area owner agrees.
Have you also verified if the JIT CodeGen is the same?
A Godbolt example would then make this easier for the reviewer.
Thank you very much for your efforts. More contributions are welcome :).
src/libraries/System.Private.CoreLib/src/System/ReadOnlySpan.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Robin Lindner <[email protected]>
src/libraries/System.Private.CoreLib/src/System/ReadOnlySpan.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Robin Lindner <[email protected]>
|
Results from a @EgorBo Any concerns with this change? |
* Revert "Workaround to remove unnecessary bounds checks when using {ReadOnly}Span.IsEmpty (dotnet/coreclr#19640)"
This reverts commit 82bd67f.
* Update doc comments
* Apply suggestions from code review
Co-authored-by: Robin Lindner <[email protected]>
* Apply suggestions from code review
Co-authored-by: Robin Lindner <[email protected]>
Co-authored-by: Aaron Robinson <[email protected]>
Co-authored-by: Robin Lindner <[email protected]>
Co-authored-by: Robin Lindner <[email protected]>
Fix #64514
/cc @deeprobin