Closed sbrichardson closed 4 years ago
Closed since even though improving (~slightly), still seeing 2x performance gains over this lib from using lodash.isEqual. I think the benchmarks on your readme may be out of date, or comparing small objects only.
Will resubmit or comment again after more research.
This version avoids work in a few ways.
There may be an extra gain on line 12, if the data isn't expected to have a lot of
null
values (not so with graphql queries, since they do), you could potentially do the object checks first, then the truthya && b
check.