小编Mig*_*gko的帖子

Optimize C# code for counting number of occurences in nested loop

I want to optimize this code for counting the number of occurrences in a list of strings. To be specific, I have two lists

1) cat: a huge list of string with duplicates (duplicates must exist).

2) cat_unq: the distinct elements from cat.

What I am currently doing in my code is looping all unique elements in cat_unq and counting how many times the unique element exists in the list of duplicates. The search runs on a mobile …

c# optimization

3
推荐指数
1
解决办法
63
查看次数

标签 统计

c# ×1

optimization ×1