Open lovasoa opened 5 years ago
In case you are interested, I just published a faster implementation of the same algorithm: lovasoa/fast_array_intersect.
Here are the things you could improve in your version :
for(var i=0; i<a.length; i++)
for(var i in a)
Map
Awesome! Thanks for sharing your insights :) I'm going to keep this issue open for anyone to learn, discover your version of pick up working on it 🙏
In case you are interested, I just published a faster implementation of the same algorithm: lovasoa/fast_array_intersect.
Here are the things you could improve in your version :
for(var i=0; i<a.length; i++)
instead offor(var i in a)
Map
instead of an object