ornwipa / book_recommender

Final project for ComIT's FULL STACK .NET course
GNU General Public License v3.0
1 stars 1 forks source link

run for-loop in a parallel operation using "Tasks" #25

Closed ornwipa closed 4 years ago

ornwipa commented 4 years ago

https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/how-to-write-a-simple-parallel-for-loop

ornwipa commented 4 years ago

https://dotnettutorials.net/lesson/parallel-for-method-csharp/ run parallel only when each serial is takes a long time, so only in cosine similarity within recommendation algorithm, but not when constructing user jagged array because each loop is quick but there is too many loops.

ornwipa commented 4 years ago

merge the revision locally