There is a list artList in which ~ 60 artList data. There is also a list of objects of the class List<FileDB> listFileDB = new List<FileDB>(); It is also about ~ 60t data.
class FileDB { public string Articule { get; set; } public string Naim { get; set; } public string Cnt { get; set; } } Question. A lot of CPU time is occupied by the comparison operation. It seems there are no regulars here, and I don’t split. How to speed up the comparison process?
for (int i = 0; i < artList.Count; i++) { for (int j = 0; j <listFileDB.Count; j++) { if (artList[i] == listFileDB[j].Articule) { // Данная операция очень затратна по ресурсам } } }