Open Rizhiy opened 6 years ago
@Rizhiy, thank you very much for spotting the issue. Multi-threading would definitely help. But I’m not sure if simply using Pool is Ok, as the current implementation writes to the same ret array. Maybe need to create multiple resulting CMC arrays each for a query and reduce them after the pool.
Any pull requests are welcome! I will also try to look into the problem.
CMC is currently taking a long time to compute, so long that for me it takes longer on dukemtmc to do validation than to calculate the epoch. I noticed that CMC is currently single-threaded, is it possible to make it multi-threaded?
e.g. can I pool this loop:
?