Skip to content

Commit e94440a

Browse files
authored
Merge pull request #38730 from DougGregor/async-task-slab-quanta-5.5
Lower the async task slab allocation to 1000 bytes.
2 parents 4ae44a5 + 2e2107f commit e94440a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/public/Concurrency/TaskPrivate.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,7 @@ class alignas(sizeof(void*) * 2) ActiveTaskStatus {
238238
};
239239

240240
/// The size of an allocator slab.
241-
///
242-
/// TODO: find the optimal value by experiment.
243-
static constexpr size_t SlabCapacity = 1024;
241+
static constexpr size_t SlabCapacity = 1000;
244242

245243
using TaskAllocator = StackAllocator<SlabCapacity>;
246244

0 commit comments

Comments
 (0)