Skip to content

Commit

Permalink
Reduce scheduler heap size to reduce memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
john0312 committed Jul 27, 2024
1 parent 5d57368 commit fc73341
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fw/Core/Hitcon/Service/Sched/Scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class Scheduler {
private:
static constexpr size_t kAddQueueSize = 8;

Heap<Task, 50> tasks;
Heap<DelayedTask, 50> delayedTasks;
Array<PeriodicTask, 50> enabledPeriodicTasks, disabledPeriodicTasks;
Heap<Task, 32> tasks;
Heap<DelayedTask, 16> delayedTasks;
Array<PeriodicTask, 16> enabledPeriodicTasks, disabledPeriodicTasks;

// Queue used to temporarily hold calls to Queue() so we can defer heap
// operations to later.
Expand Down

0 comments on commit fc73341

Please sign in to comment.