When AsParallel() spawn new multiple thread

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
dtFilterDataFromAllData.AsEnumerable().AsParallel().Any(w => w.Field<string>("BRTab") == BRTab
&& w.Field<string>("RowNumber") == RowNumber
&& w.Field<string>("StandardDate").Replace("A", "").Replace("E", "")
== strPeriod.Replace("A", "").Replace("E", ""))

dtFilterDataFromAllData is datatable.

Please see my code where i used AsParallel() but found no as such speed. i am querying datatable which has 10,000 data. so i like to know exactly
when AsParallel() gives more speed. for how much or how many data AsParallel() spawn new multiple thread ?

please discuss with my code. thanks

Continue reading...
 
Back
Top