.NET: How to efficiently check for uniqueness in a List of 50,000 items?

前端 未结 6 1419
南旧
南旧 2021-02-01 15:28

In some library code, I have a List that can contain 50,000 items or more.

Callers of the library can invoke methods that result in strings being added to the list. Ho

6条回答
  •  Happy的楠姐
    2021-02-01 16:02

    Possibly off-topic, but if you want to scale very large unique sets of strings (millions+) in a language-independent way, you might check out Bloom Filters.

提交回复
热议问题