You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... without another function or duplicating all the checks already in eq()
Without another function yap, but it's a dup check.
@gaperton@megawac
The simple object check won't due in older enviros that report regexes as type of function. It means in those environments _.isEqual(/a/, /a/) will return false with these optimizations.
Also the benchmark is looking at millions of ops/sec vs. more millions of ops/sec so this is not likely a bottleneck (a micro-opt).
7f59e40
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jridgewell
Without another function yap, but it's a dup check.
@gaperton @megawac
The simple
object
check won't due in older enviros that report regexes as type offunction
. It means in those environments_.isEqual(/a/, /a/)
will returnfalse
with these optimizations.Also the benchmark is looking at millions of ops/sec vs. more millions of ops/sec so this is not likely a bottleneck (a micro-opt).