Skip to content

Commit

Permalink
[platform] reduce default event queue size
Browse files Browse the repository at this point in the history
The event queue is way too large by default, occupying 6.4 KB.
This PR reduces its size to optimize heap usage.
  • Loading branch information
gjc13 committed May 28, 2021
1 parent 34bccf5 commit a5204c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ menu "CHIP Device Layer"
config MAX_EVENT_QUEUE_SIZE
int "Max Event Queue Size"
range 0 65535
default 100
default 25
help
The maximum number of events that can be held in the CHIP Platform event queue.

Expand Down
2 changes: 1 addition & 1 deletion src/include/platform/CHIPDeviceConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
* The maximum number of events that can be held in the chip Platform event queue.
*/
#ifndef CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE
#define CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE 100
#define CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE 25
#endif

/**
Expand Down

0 comments on commit a5204c8

Please sign in to comment.