Fastest way to check if a List contains a unique String

前端 未结 10 983
天涯浪人
天涯浪人 2020-12-13 11:43

Basically I have about 1,000,000 strings, for each request I have to check if a String belongs to the list or not.

I\'m worried about the performance, so what\'s the

10条回答
  •  -上瘾入骨i
    2020-12-13 12:36

    If you are having such a large amount of strings, the best opportunity for you is to use a database. Look for MySQL.

提交回复
热议问题