Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 0a4b0e2

Browse files
committed
chore(*): finalize SCC 3.4.6
1 parent 00b74fb commit 0a4b0e2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ let future_remove = hashset.remove_async(&1);
149149

150150
### Entry lifetime
151151

152-
`HashIndex` does not drop removed entries immediately, instead, they are dropped when the bucket is accessed again after [`sdd`](https://crates.io/crates/sdd) has ensured that there are no potential readers of those entries. This implies that a removed entry can remain as long as there are potential readers or the bucket is not accessed. This makes `HashIndex` not an optimal choice if the workload is write-heavy and the entry size is large.
152+
The `HashIndex` does not drop removed entries immediately; instead, they are dropped only when the bucket is accessed again after the [`sdd`](https://crates.io/crates/sdd) mechanism ensures there are no potential readers for those entries. This implies that a removed entry may persist as long as there are potential readers or the bucket remains unaccessed. As a result, `HashIndex` is not an optimal choice for workloads that are write-heavy and involve large entry sizes.
153153

154154
### Examples
155155

src/hash_table.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ where
686686

687687
if removed {
688688
if TYPE == INDEX {
689-
async_guard.guard().set_has_garbage();
689+
async_guard.guard().accelerate();
690690
}
691691
if let Some(current_array) = self.bucket_array(async_guard.guard()) {
692692
self.try_shrink(current_array, 0, async_guard.guard());
@@ -755,7 +755,7 @@ where
755755

756756
if removed {
757757
if TYPE == INDEX {
758-
guard.set_has_garbage();
758+
guard.accelerate();
759759
}
760760
if let Some(current_array) = self.bucket_array(guard) {
761761
self.try_shrink(current_array, 0, guard);

0 commit comments

Comments
 (0)