Open Oriun opened 2 years ago
Implemented simple multithreading with std::future and std::async.
Mesure time for 50 tests on my computer.
Running the search on more than one thread does speed up the process (-49% with 2 threads) but as we add more threads it gets slower. It can be due to the time needed to create the thread (we should try to reuse threads) or the cpu it runs on.
Implement multithreaded search for nearest neighbors in c++ to compute the algorithm faster.