Skip to content
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

Add early return for Streams Equal comparison when they are empty #4674

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

mithileshz
Copy link
Contributor

When the streams are seekable and are empty, we can return they are equal and save the allocation of the byte arrays and the comparisons around them.

Copy link
Member

@OsirisTerje OsirisTerje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mithileshz Tip: Note that we require issues for release notes. This is small, but - just for the future :-)

@OsirisTerje OsirisTerje merged commit 4fa8396 into nunit:master Mar 27, 2024
5 checks passed
@mithileshz mithileshz deleted the StreamsComparerEmptyStream branch March 27, 2024 21:15
@mithileshz
Copy link
Contributor Author

@OsirisTerje ah sorry! I'll keep that in mind for next time. Thank you!

@OsirisTerje
Copy link
Member

@mithileshz No problem :-) We do accept PRs without too. It is just that we like to give credit to those who contribute PRs in the release notes , but we do that through the issues and checks who have done the corresponding PR, using an automated process. So without issues you don't get that honorable mention you do deserve :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants