Skip to content

Commit 735539d

Browse files
committed
disable sorting in Rustby default, fix results
1 parent 3092e88 commit 735539d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The following results are for 123 unique utf-8 Bible text files in 23 languages
1414
* Machine: MacBook Pro 16" 64GB 2TB M1Max 10 cores.
1515

1616
<pre>
17-
1. Rust 1.58 = 1.14s (with sorting: 1.62s) with tokyo (previous: 1.34s, with sorting: 1.79)
17+
1. Rust 1.58 = 1.14s (with sorting: 1.59s) with tokyo (previous: 1.34s, with sorting: 1.79)
1818
2. Golang 1.17.6 = 1.34s (with sorting: 6.55s)
1919
3. Python 3.10.2 = 2.80s (with multiprocessing)
2020
4. Julia 1.7.1 = 4.522

example-rust/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::Path;
77
use tokio::fs;
88
use yaml_rust::YamlLoader;
99

10-
const SORT: bool = true;
10+
const SORT: bool = false;
1111
const OUTDIR: &str = "words";
1212
const FILE_DIR: &str = "../data/??/**/*.yml";
1313
static SEPARATOR_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"[\W\d]+").unwrap());
@@ -57,6 +57,8 @@ async fn main() -> std::io::Result<()> {
5757
let yaml_path = entry.expect("should be existed");
5858
let txt_path = yaml_path.with_extension("txt");
5959

60+
println!("{:?}", txt_path);
61+
6062
let outdir_submission =
6163
tokio::spawn(async { create_outdir().await.expect("unable to create outdir") });
6264

0 commit comments

Comments
 (0)