orlp / pdqsort

Pattern-defeating quicksort.
zlib License
2.37k stars 102 forks source link

Move check inside of condition #19

Closed edoardopirovano closed 9 months ago

edoardopirovano commented 2 years ago

In partial_insertion_sort, I don't think we need to check whether limit > partial_insertion_sort_limit if we're outside the if as we only change the value of limit inside the if.