Skip Navigation

Rust just merged two new very fast sort implementations into stdlib

github.com Replace sort implementations by Voultapher · Pull Request #124032 · rust-lang/rust

This PR replaces the sort implementations with tailor-made ones that strike a balance of run-time, compile-time and binary-size, yielding run-time and compile-time improvements. Regressing binary-s...

Replace sort implementations by Voultapher · Pull Request #124032 · rust-lang/rust
 name                                            diff %  speedup 
 slice::sort_large_random                       -65.49%   x 2.90 
 slice::sort_large_strings                      -37.75%   x 1.61 
 slice::sort_medium_random                      -47.89%   x 1.92 
 slice::sort_small_random                        11.11%   x 0.90 
 slice::sort_unstable_large_random              -47.57%   x 1.91 
 slice::sort_unstable_large_strings             -25.19%   x 1.34 
 slice::sort_unstable_medium_random             -22.15%   x 1.28 
 slice::sort_unstable_small_random              -15.79%   x 1.19
11

You're viewing a single thread.

11 comments
You've viewed 11 comments.