Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compare pointers first in CSSCustomPropertyValue::equals()
https://bugs.webkit.org/show_bug.cgi?id=261057 rdar://114854431 Reviewed by Chris Dumez. When CSSCustomPropertyValue holds a variant type that is a pointer, do pointer comparison first before comparing values. This avoids calls to the expensive `CSSVariableData::operator==`, which gives a measurable perf boost on some Speedometer 3 subtests with lots of custom properties. * Source/WebCore/css/CSSCustomPropertyValue.cpp: (WebCore::CSSCustomPropertyValue::equals const): Canonical link: https://commits.webkit.org/267578@main
- Loading branch information