[Webkit-unassigned] [Bug 145992] Strict Equality on objects should only check that one of the two sides is an object.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 16 20:11:10 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=145992
--- Comment #13 from Darin Adler <darin at apple.com> ---
Comment on attachment 254990
--> https://bugs.webkit.org/attachment.cgi?id=254990
Patch Expected File
Iâm probably not qualified to review the patch. But was just wondering: Would it be faster to do an early exit if the two values are identical before doing any type checking? Then if the type is object we can return false. It seems that this makes strict equality comparisons of objects that turn out to be equal faster without slowing down the ones that turn out to be not equal. But maybe it would slow down some other important cases? Besides objects, I believe that undefined, null, booleans, and integers would all benefit from this. Floating point numbers and strings might be slowed down slightly by the extra check, I guess.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150617/547b55ba/attachment.html>
More information about the webkit-unassigned
mailing list