Skip to content

Commit 693ccca

Browse files
committed
Auto merge of #141325 - tage64:thin_bit_set, r=<try>
[experiment, do not merge!] rewrite the DenseBitSet structure to only use 1 word on the stack Modify DenseBitSet in the rustc_index crate so that it only uses one word on the stack instead of 4 words as before, allowing for faster clones. The downside is that it may at most store 63 elements on the stack as aposed to 128 for the previous implementation. r? lqd This is experimental so far and I mostly want a perf run to measure the performance.
2 parents 87b4541 + 3ff2c88 commit 693ccca

File tree

20 files changed

+1975
-616
lines changed

20 files changed

+1975
-616
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3855,6 +3855,7 @@ dependencies = [
38553855
name = "rustc_index"
38563856
version = "0.0.0"
38573857
dependencies = [
3858+
"itertools",
38583859
"rustc_index_macros",
38593860
"rustc_macros",
38603861
"rustc_serialize",

compiler/rustc_abi/src/layout/coroutine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fn coroutine_saved_local_eligibility<VariantIdx: Idx, FieldIdx: Idx, LocalIdx: I
120120
for assignment in assignments.iter_mut() {
121121
*assignment = Ineligible(None);
122122
}
123-
ineligible_locals.insert_all();
123+
ineligible_locals.insert_all(nb_locals);
124124
}
125125
}
126126

compiler/rustc_index/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
# tidy-alphabetical-start
8+
itertools = "0.12"
89
rustc_index_macros = { path = "../rustc_index_macros" }
910
rustc_macros = { path = "../rustc_macros", optional = true }
1011
rustc_serialize = { path = "../rustc_serialize", optional = true }

0 commit comments

Comments
 (0)