Skip to content

Commit b2f1037

Browse files
committed
perf: test rustc-hash variant optimized for small strings.
1 parent c485ee7 commit b2f1037

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

Cargo.lock

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ dependencies = [
13441344
"fluent-syntax",
13451345
"intl-memoizer",
13461346
"intl_pluralrules",
1347-
"rustc-hash",
1347+
"rustc-hash 1.1.0",
13481348
"self_cell 0.10.3",
13491349
"smallvec",
13501350
"unic-langid",
@@ -2118,7 +2118,7 @@ dependencies = [
21182118
"anyhow",
21192119
"clap",
21202120
"fs-err",
2121-
"rustc-hash",
2121+
"rustc-hash 1.1.0",
21222122
"rustdoc-json-types",
21232123
"serde",
21242124
"serde_json",
@@ -2374,7 +2374,7 @@ dependencies = [
23742374
"memmap2",
23752375
"parking_lot",
23762376
"perf-event-open-sys",
2377-
"rustc-hash",
2377+
"rustc-hash 1.1.0",
23782378
"smallvec",
23792379
]
23802380

@@ -2942,7 +2942,7 @@ checksum = "c4e8e505342045d397d0b6674dcb82d6faf5cf40484d30eeb88fc82ef14e903f"
29422942
dependencies = [
29432943
"datafrog",
29442944
"log",
2945-
"rustc-hash",
2945+
"rustc-hash 1.1.0",
29462946
]
29472947

29482948
[[package]]
@@ -3315,6 +3315,11 @@ version = "1.1.0"
33153315
source = "registry+https://github.com/rust-lang/crates.io-index"
33163316
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
33173317

3318+
[[package]]
3319+
name = "rustc-hash"
3320+
version = "2.0.0"
3321+
source = "git+https://github.com/adamreichold/rustc-hash/?branch=small-strings#6f0afc1216c5a6e67f0829facf466839ab7d845a"
3322+
33183323
[[package]]
33193324
name = "rustc-main"
33203325
version = "0.0.0"
@@ -3675,7 +3680,7 @@ dependencies = [
36753680
"memmap2",
36763681
"parking_lot",
36773682
"portable-atomic",
3678-
"rustc-hash",
3683+
"rustc-hash 2.0.0",
36793684
"rustc-rayon",
36803685
"rustc-rayon-core",
36813686
"rustc_arena",
@@ -4355,7 +4360,7 @@ name = "rustc_pattern_analysis"
43554360
version = "0.0.0"
43564361
dependencies = [
43574362
"derivative",
4358-
"rustc-hash",
4363+
"rustc-hash 2.0.0",
43594364
"rustc_apfloat",
43604365
"rustc_arena",
43614366
"rustc_data_structures",
@@ -4710,7 +4715,7 @@ name = "rustdoc-json-types"
47104715
version = "0.1.0"
47114716
dependencies = [
47124717
"bincode",
4713-
"rustc-hash",
4718+
"rustc-hash 1.1.0",
47144719
"serde",
47154720
"serde_json",
47164721
]
@@ -5705,7 +5710,7 @@ version = "0.4.0"
57055710
source = "registry+https://github.com/rust-lang/crates.io-index"
57065711
checksum = "b6d3364c5e96cb2ad1603037ab253ddd34d7fb72a58bdddf4b7350760fc69a46"
57075712
dependencies = [
5708-
"rustc-hash",
5713+
"rustc-hash 1.1.0",
57095714
]
57105715

57115716
[[package]]

compiler/rustc_data_structures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ itertools = "0.11"
1414
jobserver_crate = { version = "0.1.27", package = "jobserver" }
1515
libc = "0.2"
1616
measureme = "11"
17-
rustc-hash = "1.1.0"
17+
rustc-hash = { git = "https://github.com/adamreichold/rustc-hash/", branch = "small-strings" }
1818
rustc-rayon = { version = "0.5.0", optional = true }
1919
rustc-rayon-core = { version = "0.5.0", optional = true }
2020
rustc_arena = { path = "../rustc_arena" }

compiler/rustc_pattern_analysis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
[dependencies]
77
# tidy-alphabetical-start
88
derivative = "2.2.0"
9-
rustc-hash = "1.1.0"
9+
rustc-hash = { git = "https://github.com/adamreichold/rustc-hash/", branch = "small-strings" }
1010
rustc_apfloat = "0.2.0"
1111
rustc_arena = { path = "../rustc_arena", optional = true }
1212
rustc_data_structures = { path = "../rustc_data_structures", optional = true }

0 commit comments

Comments
 (0)