Collections.sort性能
时间: 2023-10-14 09:02:41 浏览: 97
根据引用,Collections.sort()方法使用了归并排序算法,该算法的性能为O(n*log(n))。所以,Collections.sort()的性能是很好的。它可以在较短的时间内对较大规模的数据进行排序。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Java - Collections.sort()性能](https://blog.csdn.net/weixin_36308872/article/details/118826068)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Collections.sort是稳定排序吗?](https://blog.csdn.net/qq_39839075/article/details/124553236)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [性能对比:collections.sort vs treeSet sort vs java8 stream.sorted](https://blog.csdn.net/weixin_28756413/article/details/114559829)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文