mirror of
https://github.com/crate-ci/typos.git
synced 2026-11-15 18:33:59 +01:00
perf(dict)!: Switch to PHF Map
This commit is contained in:
1 parent
da0e536796
commit
7457534850
3 files changed
+180467
-239940
No files matched your search
@@ -16,7 +16,8 @@ all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
|
||||
|
||||
[dependencies]
|
||||
dictgen = { version = "^0.2", path = "../dictgen" }
|
||||
phf = "0.11.2"
|
||||
dictgen = { version = "^0.2", path = "../dictgen", features = ["map"] }
|
||||
|
||||
[dev-dependencies]
|
||||
csv = "1.3"
|
||||
@@ -29,7 +30,6 @@ varcon = { version = "^1.0", path = "../varcon" }
|
||||
snapbox = "0.6.5"
|
||||
indexmap = "2.2.6"
|
||||
divan = "0.1.16"
|
||||
phf = "0.11.2"
|
||||
heck = "0.5.0"
|
||||
|
||||
[lints]
|
||||
|
||||
+180464
-239934
File diff suppressed because it is too large.
Load diff
@@ -38,10 +38,7 @@ fn codegen() {
|
||||
snapbox::file!["../benches/benches/ordered_map_codegen.rs"].raw()
|
||||
);
|
||||
|
||||
snapbox::assert_data_eq!(
|
||||
&trie_content,
|
||||
snapbox::file!["../src/word_codegen.rs"].raw()
|
||||
);
|
||||
snapbox::assert_data_eq!(&map_content, snapbox::file!["../src/word_codegen.rs"].raw());
|
||||
}
|
||||
|
||||
fn generate_trie<W: std::io::Write>(file: &mut W, name: &str, dict: &[u8]) {
|
||||
|
||||
Reference in new issue
Block a user