Bug 1352734, use memcmp for nsIAtom Equals to improve performance, r=hsivonen

This commit is contained in:
Olli Pettay
2017-04-02 22:40:06 +03:00
parent 52b67bf633
commit 6a1acb22b7
3 changed files with 10 additions and 10 deletions

View File

@@ -91,7 +91,7 @@ nsHtml5Portability::releaseString(nsString* str)
bool
nsHtml5Portability::localEqualsBuffer(nsIAtom* local, char16_t* buf, int32_t offset, int32_t length)
{
return local->Equals(nsDependentSubstring(buf + offset, buf + offset + length));
return local->Equals(buf + offset, length);
}
bool