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
Right now there is deep recursive comparison happening even if collection1.length /= collection2.length. It seems to me that we could skip a lot of unneeded work by returning early in those cases.
The text was updated successfully, but these errors were encountered:
Disclaimer: I'm not that knowledgeable of the kernel code.
Would this be worth it for any type but arrays? The other types are implemented in a recursive/linked list sort of way, so you'd have to traverse the collection to get the length, while the array type seems to be a thin wrapper around regular JavaScript arrays, where getting the length is a constant time operation.
Right now there is deep recursive comparison happening even if
collection1.length /= collection2.length
. It seems to me that we could skip a lot of unneeded work by returning early in those cases.The text was updated successfully, but these errors were encountered: