Added fastpath for operator==(const String&, const String&)
Former-commit-id: 2f0c5dff353ba9225ff5888fe35c744790bb1f95
This commit is contained in:
parent
d81268f204
commit
15e62110cf
|
|
@ -4206,6 +4206,9 @@ bool operator==(const NzString& first, const NzString& second)
|
|||
if (first.m_sharedString->size != second.m_sharedString->size)
|
||||
return false;
|
||||
|
||||
if (first.m_sharedString == second.m_sharedString)
|
||||
return true;
|
||||
|
||||
return std::strcmp(first.m_sharedString->string, second.m_sharedString->string) == 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue