Skip to content

Commit 8a53408

Browse files
committed
improved performance of operator==()
1 parent fb30223 commit 8a53408

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Rfx/Blob.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ inline auto Blob::operator<=>(const Blob& rhs) const noexcept
139139

140140
inline bool Blob::operator==(const Blob& rhs) const noexcept
141141
{
142+
if (m_size != rhs.m_size)
143+
return false;
142144
return (*this <=> rhs) == 0;
143145
}
144146

0 commit comments

Comments
 (0)