Skip to content

Commit c8d73ea

Browse files
author
Stjepan Glavina
committed
Implement a faster sort algorithm
This is a complete rewrite of the standard sort algorithm. The new algorithm is a simplified variant of TimSort. In summary, the changes are: * Improved performance, especially on partially sorted inputs. * Performs less comparisons on both random and partially sorted inputs. * Decreased the size of temporary memory: the new sort allocates 4x less.
1 parent ff261d3 commit c8d73ea

File tree

4 files changed

+480
-315
lines changed

4 files changed

+480
-315
lines changed

src/libcollections/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
#![feature(placement_in)]
4848
#![feature(placement_new_protocol)]
4949
#![feature(shared)]
50+
#![feature(slice_get_slice)]
5051
#![feature(slice_patterns)]
5152
#![feature(specialization)]
5253
#![feature(staged_api)]
53-
#![feature(step_by)]
5454
#![feature(trusted_len)]
5555
#![feature(unicode)]
5656
#![feature(unique)]
57-
#![feature(slice_get_slice)]
57+
#![feature(untagged_unions)]
5858
#![cfg_attr(test, feature(rand, test))]
5959

6060
#![no_std]

0 commit comments

Comments
 (0)