Skip to content

Commit

Permalink
Merge pull request #38730 from DougGregor/async-task-slab-quanta-5.5
Browse files Browse the repository at this point in the history
Lower the async task slab allocation to 1000 bytes.
  • Loading branch information
DougGregor committed Aug 5, 2021
2 parents 4ae44a5 + 2e2107f commit e94440a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/public/Concurrency/TaskPrivate.h
Expand Up @@ -238,9 +238,7 @@ class alignas(sizeof(void*) * 2) ActiveTaskStatus {
};

/// The size of an allocator slab.
///
/// TODO: find the optimal value by experiment.
static constexpr size_t SlabCapacity = 1024;
static constexpr size_t SlabCapacity = 1000;

using TaskAllocator = StackAllocator<SlabCapacity>;

Expand Down

0 comments on commit e94440a

Please sign in to comment.