Skip to content

Commit 246ad6d

Browse files
committed
[PERF] see if my fork of stringdex affects perf
1 parent c0ff72f commit 246ad6d

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5274,8 +5274,7 @@ dependencies = [
52745274
[[package]]
52755275
name = "stringdex"
52765276
version = "0.0.2"
5277-
source = "registry+https://github.com/rust-lang/crates.io-index"
5278-
checksum = "18b3bd4f10d15ef859c40291769f0d85209de6b0f1c30713ff9cdf45ac43ea36"
5277+
source = "git+https://gitlab.com/yotamofek/stringdex?rev=5dc67b8e6ce4f2d1f22c176ba881521167b950b1#5dc67b8e6ce4f2d1f22c176ba881521167b950b1"
52795278
dependencies = [
52805279
"stacker",
52815280
]

src/librustdoc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rustdoc-json-types = { path = "../rustdoc-json-types" }
2121
serde = { version = "1.0", features = ["derive"] }
2222
serde_json = "1.0"
2323
smallvec = "1.8.1"
24-
stringdex = "=0.0.2"
24+
stringdex = { git = "https://gitlab.com/yotamofek/stringdex", rev = "5dc67b8e6ce4f2d1f22c176ba881521167b950b1" }
2525
tempfile = "3"
2626
threadpool = "1.8.1"
2727
tracing = "0.1"

src/librustdoc/html/render/search_index.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,14 @@ impl Serialize for TypeData {
10591059
let mut buf = Vec::new();
10601060
encode::write_postings_to_string(&self.inverted_function_inputs_index, &mut buf);
10611061
let mut serialized_result = Vec::new();
1062-
stringdex_internals::encode::write_base64_to_bytes(&buf, &mut serialized_result);
1062+
stringdex_internals::encode::write_base64_to_bytes(&buf, &mut serialized_result)
1063+
.unwrap();
10631064
seq.serialize_element(&str::from_utf8(&serialized_result).unwrap())?;
10641065
buf.clear();
10651066
serialized_result.clear();
10661067
encode::write_postings_to_string(&self.inverted_function_output_index, &mut buf);
1067-
stringdex_internals::encode::write_base64_to_bytes(&buf, &mut serialized_result);
1068+
stringdex_internals::encode::write_base64_to_bytes(&buf, &mut serialized_result)
1069+
.unwrap();
10681070
seq.serialize_element(&str::from_utf8(&serialized_result).unwrap())?;
10691071
if self.search_unbox {
10701072
seq.serialize_element(&1)?;

src/tools/tidy/src/extdeps.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const ALLOWED_SOURCES: &[&str] = &[
1111
r#""registry+https://github.com/rust-lang/crates.io-index""#,
1212
// This is `rust_team_data` used by `site` in src/tools/rustc-perf,
1313
r#""git+https://github.com/rust-lang/team#a5260e76d3aa894c64c56e6ddc8545b9a98043ec""#,
14+
// TMP:
15+
r#""git+https://gitlab.com/yotamofek/stringdex?rev=5dc67b8e6ce4f2d1f22c176ba881521167b950b1#5dc67b8e6ce4f2d1f22c176ba881521167b950b1""#,
1416
];
1517

1618
/// Checks for external package sources. `root` is the path to the directory that contains the

0 commit comments

Comments
 (0)