diff options
author | Lia Lenckowski <lialenck@protonmail.com> | 2023-09-20 13:34:35 +0200 |
---|---|---|
committer | Lia Lenckowski <lialenck@protonmail.com> | 2023-09-20 13:34:35 +0200 |
commit | 2d127740cf30cfbd3875a406ecc42ef6ebde60e4 (patch) | |
tree | cadde76fd6d6c0d1258242d21bec4f94ff4e903d /Cargo.lock | |
parent | ae445f481e9ae96b41d15ff22592f40ef5432302 (diff) | |
download | embeddings-sort-2d127740cf30cfbd3875a406ecc42ef6ebde60e4.tar embeddings-sort-2d127740cf30cfbd3875a406ecc42ef6ebde60e4.tar.bz2 embeddings-sort-2d127740cf30cfbd3875a406ecc42ef6ebde60e4.tar.zst |
~3x speed improvement: replace priority queues and prim's algoritm with sorted vectors and krushkal's algorithm
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 44 |
1 files changed, 17 insertions, 27 deletions
@@ -78,6 +78,12 @@ dependencies = [ ] [[package]] +name = "bit-vec" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f59bbe95d4e52a6398ec21238d31577f2b28a9d86807f06ca59d191d8440d0bb" + +[[package]] name = "bit_field" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -289,8 +295,8 @@ dependencies = [ "image", "indicatif", "multiset", + "partitions", "pathdiff", - "priority-queue", "rayon", "reflink-copy", "serde", @@ -429,12 +435,6 @@ dependencies = [ ] [[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - -[[package]] name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -466,16 +466,6 @@ dependencies = [ ] [[package]] -name = "indexmap" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" -dependencies = [ - "autocfg", - "hashbrown", -] - -[[package]] name = "indicatif" version = "0.17.6" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -674,6 +664,16 @@ dependencies = [ ] [[package]] +name = "partitions" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9249745fe5a60e2ebd69cc649af1baf28fa3f4606b24146490124405401510d8" +dependencies = [ + "bit-vec", + "rayon", +] + +[[package]] name = "pathdiff" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -719,16 +719,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "31114a898e107c51bb1609ffaf55a0e011cf6a4d7f1170d0015a165082c0338b" [[package]] -name = "priority-queue" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fff39edfcaec0d64e8d0da38564fad195d2d51b680940295fcc307366e101e61" -dependencies = [ - "autocfg", - "indexmap", -] - -[[package]] name = "proc-macro2" version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" |