Skip to content

Commit

Permalink
Decrease size for interaction model object pools (use 1/2 the current…
Browse files Browse the repository at this point in the history
… value) (#11044)

* Optimize memory for interaction model object pools

* Update some pool values per specs minima
  • Loading branch information
lucicop authored and pull[bot] committed Dec 9, 2021
1 parent 6f47505 commit 1173079
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions examples/platform/qpg/project_include/CHIPProjectConfig.h
Original file line number Diff line number Diff line change
@@ -148,3 +148,77 @@
* their access control lists.
*/
#define CHIP_CONFIG_MAX_DEVICE_ADMINS 4 // 3 fabrics + 1 for rotation slack

/**
* @name Interaction Model object pool configuration.
*
* @brief
* The following definitions sets the maximum number of corresponding interaction model object pool size.
*
* * #CHIP_IM_MAX_NUM_COMMAND_HANDLER
* * #CHIP_IM_MAX_NUM_COMMAND_SENDER
* * #CHIP_IM_MAX_NUM_READ_HANDLER
* * #CHIP_IM_MAX_NUM_READ_CLIENT
* * #CHIP_IM_MAX_REPORTS_IN_FLIGHT
* * #CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS
* * #CHIP_IM_MAX_NUM_WRITE_HANDLER
* * #CHIP_IM_MAX_NUM_WRITE_CLIENT
*
* @{
*/

/**
* @def CHIP_IM_MAX_NUM_COMMAND_HANDLER
*
* @brief Defines the maximum number of CommandHandler, limits the number of active commands transactions on server.
*/
#define CHIP_IM_MAX_NUM_COMMAND_HANDLER 2

/**
* @def CHIP_IM_MAX_NUM_COMMAND_SENDER
*
* @brief Defines the maximum number of CommandSender, limits the number of active command transactions on client.
*/
#define CHIP_IM_MAX_NUM_COMMAND_SENDER 2

/**
* @def CHIP_IM_MAX_NUM_READ_HANDLER
*
* @brief Defines the maximum number of ReadHandler, limits the number of active read transactions on server.
*/
#define CHIP_IM_MAX_NUM_READ_HANDLER 3

/**
* @def CHIP_IM_MAX_NUM_READ_CLIENT
*
* @brief Defines the maximum number of ReadClient, limits the number of active read transactions on client.
*/
#define CHIP_IM_MAX_NUM_READ_CLIENT 2

/**
* @def CHIP_IM_MAX_REPORTS_IN_FLIGHT
*
* @brief Defines the maximum number of Reports, limits the traffic of read and subscription transactions.
*/
#define CHIP_IM_MAX_REPORTS_IN_FLIGHT 2

/**
* @def CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS
*
* @brief Defines the maximum number of path objects, limits the number of attributes being read or subscribed at the same time.
*/
#define CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS 9

/**
* @def CHIP_IM_MAX_NUM_WRITE_HANDLER
*
* @brief Defines the maximum number of WriteHandler, limits the number of active write transactions on server.
*/
#define CHIP_IM_MAX_NUM_WRITE_HANDLER 2

/**
* @def CHIP_IM_MAX_NUM_WRITE_CLIENT
*
* @brief Defines the maximum number of WriteClient, limits the number of active write transactions on client.
*/
#define CHIP_IM_MAX_NUM_WRITE_CLIENT 2

0 comments on commit 1173079

Please sign in to comment.