Friday, 6 July 2018

Best way to remove duplicates from huge array of objects

Base on title, is there any way or best practice on removing duplicates from a huge array of objects.I have tested about 150 objects in the array and the time taken is about 1 seconds which is fine. Problem arises when the array is too big (perhaps 50,000 objects or more). Tested it and it took minutes.Wondering if there is any tips or tricks for this problem or even node_modules to use. Currently using Lodash for its .uniqByThanks in advance.

Submitted July 07, 2018 at 05:28AM by xjellyfishx

No comments:

Post a Comment