Skip to content

Commit caa74c9

Browse files
committed
feat: update comments for gen_shared_list_size
1 parent 06656b9 commit caa74c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tokio/src/runtime/task/list.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ impl<S: 'static> OwnedTasks<S> {
190190
/// The sharded lock design can effectively alleviate
191191
/// lock contention performance problems caused by high concurrency.
192192
///
193-
/// However, as the number of shards increases, the memory continuity between nodes in
194-
/// the intrusive linked list will decrease. Moreover, as the number of shards increases,
195-
/// the construction time of the sharded list will increase.
193+
/// However, as the number of shards increases, the memory continuity between
194+
/// nodes in the intrusive linked list will diminish. Furthermore,
195+
/// the construction time of the sharded list will also increase with a higher number of shards.
196196
///
197197
/// For the above reasons, we set a maximum value for the shared list size `MAX_SHARED_LIST_SIZE`.
198198
fn gen_shared_list_size(num_cores: usize) -> usize {

0 commit comments

Comments
 (0)