If I have 2 cores, or 200 cores, etc. that I can use for my program and I have a huge amount of data to be sorted that is not being used via Access or any other common database, and if I want to sort it fast, I was thinking of maybe using threads for partial sorts, or something like that. Maybe sort 10% of the data with each of 10 different cpu cores, then step over in the data 5% of the total of the data and sort from there in 10% sections, maybe. Do this until no changes are detected. If I have so much data that to do each of these individual 10% sorts takes a few minutes in each thread using its own cpu core, then maybe there is a better way. I am looking for usable opinions on this.
Specifically, what is the best type of sort to use for this? Someone else's pre-made software is not what I am looking for with this.
In C++ up to and including C++11.
Thank you.
Specifically, what is the best type of sort to use for this? Someone else's pre-made software is not what I am looking for with this.
In C++ up to and including C++11.
Thank you.
Comment