Skip to content

Commit a51b650

Browse files
authored
Merge pull request #38727 from DougGregor/async-task-slab-quanta
Lower the async task slab allocation to 1000 bytes.
2 parents 7fb85c3 + 64c6707 commit a51b650

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
@@ -264,9 +264,7 @@ class alignas(sizeof(void*) * 2) ActiveTaskStatus {
264264
};
265265

266266
/// The size of an allocator slab.
267-
///
268-
/// TODO: find the optimal value by experiment.
269-
static constexpr size_t SlabCapacity = 1024;
267+
static constexpr size_t SlabCapacity = 1000;
270268

271269
using TaskAllocator = StackAllocator<SlabCapacity>;
272270

0 commit comments

Comments
 (0)