sendwyre / yes-compliance-token

11 stars 1 forks source link

validatorEntityIds could use more efficient data structures for lookups/contains #5

Open andy8052 opened 5 years ago

andy8052 commented 5 years ago

Holding validated IDs in a list can cause some annoyances such as what is happening here.

I think it could be better to use a linked list or some more robust data structure to reference these validators. The linked lists would probably want to be converted to a library, but they have O(1) lookup, adding and removing. I think they could fit here nicely.