#sorting #merge #file #sort-by-cached-key

ex_merge_sort_by_key

Rust external merge sort library

3 unstable releases

0.2.0 Aug 26, 2021
0.1.1 Aug 22, 2021
0.1.0 Aug 22, 2021

#85 in #merge

21 downloads per month

MIT license

26KB
814 lines

ex_merge_sort_by_key

Rust external merge sort library using sort_by_cached_key.

GitHub Build Status crates.io docs.rs

Usage

[dependencies]
ex_merge_sort_by_key = "0.1"
use std::fs::File;
use std::io;

fn main() {
    let f = File::open("README.md").unwrap();
    let capacity = 1024;
    ex_merge_sort_by_key::sort_by_key(f, io::stdout(), capacity, |line| line.len()).unwrap();
}

Dependencies

~2–10MB
~108K SLoC