I am creating a torrent with around 2 million files and the insertion sort in init() absolutely murders performance, just walking the files took almost 24 hours. I changed it to just prepend each file and sort at the end with quicksort and walking the files now takes about 5 minutes.
I am creating a torrent with around 2 million files and the insertion sort in
init()
absolutely murders performance, just walking the files took almost 24 hours. I changed it to just prepend each file and sort at the end with quicksort and walking the files now takes about 5 minutes.