diff --git a/Cargo.lock b/Cargo.lock index f4e04f9..ca097af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -587,6 +587,25 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "crossbeam-deque" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "crossbeam-queue" version = "0.3.13" @@ -1310,6 +1329,7 @@ dependencies = [ "lazy_static", "mimalloc", "rand 0.8.7", + "rayon", "regex", "reqwest", "serde", @@ -2047,6 +2067,26 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + [[package]] name = "redox_syscall" version = "0.5.18" diff --git a/Cargo.toml b/Cargo.toml index bc021d4..64dac7b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,4 +22,5 @@ thiserror = "1.0" mimalloc = "0.1.48" regex = "1" lazy_static = "1.4" -jieba-rs = "0.7" \ No newline at end of file +jieba-rs = "0.7" +rayon = "1" \ No newline at end of file diff --git a/assets/index.html b/assets/index.html index c14d769..ba2ace2 100644 --- a/assets/index.html +++ b/assets/index.html @@ -154,6 +154,6 @@
- +