Message316233
How does the performance change with this patch?
Quick-select is a nice idea in theory, but unless it is written in C, it is unlikely to beat sorting the list unless you have HUGE data sets. Its been nearly four years since I last did some benchmarks, but at the time there was no comparison, sorting was clearly much better (although Stefan found that select was faster than sorting).
In particular, all the quickselect versions I tested suffered catastrophic performance slowdowns if the data was already sorted: anything from double the time to ten times as much time. |
|
Date |
User |
Action |
Args |
2018-05-06 10:43:45 | steven.daprano | set | recipients:
+ steven.daprano, tim.peters, rhettinger, terry.reedy, scoder, ezio.melotti, alex, thomasahle, jtaylor, vajrasky, upendra-k14 |
2018-05-06 10:43:45 | steven.daprano | set | messageid: <1525603425.1.0.682650639539.issue21592@psf.upfronthosting.co.za> |
2018-05-06 10:43:45 | steven.daprano | link | issue21592 messages |
2018-05-06 10:43:44 | steven.daprano | create | |
|