Skip to content

Commit 1135752

Browse files
lucicoppull[bot]
authored andcommitted
Decrease size for interaction model object pools (use 1/2 the current value) (#11044)
* Optimize memory for interaction model object pools * Update some pool values per specs minima
1 parent a985657 commit 1135752

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

examples/platform/qpg/project_include/CHIPProjectConfig.h

+74
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,77 @@
148148
* their access control lists.
149149
*/
150150
#define CHIP_CONFIG_MAX_DEVICE_ADMINS 4 // 3 fabrics + 1 for rotation slack
151+
152+
/**
153+
* @name Interaction Model object pool configuration.
154+
*
155+
* @brief
156+
* The following definitions sets the maximum number of corresponding interaction model object pool size.
157+
*
158+
* * #CHIP_IM_MAX_NUM_COMMAND_HANDLER
159+
* * #CHIP_IM_MAX_NUM_COMMAND_SENDER
160+
* * #CHIP_IM_MAX_NUM_READ_HANDLER
161+
* * #CHIP_IM_MAX_NUM_READ_CLIENT
162+
* * #CHIP_IM_MAX_REPORTS_IN_FLIGHT
163+
* * #CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS
164+
* * #CHIP_IM_MAX_NUM_WRITE_HANDLER
165+
* * #CHIP_IM_MAX_NUM_WRITE_CLIENT
166+
*
167+
* @{
168+
*/
169+
170+
/**
171+
* @def CHIP_IM_MAX_NUM_COMMAND_HANDLER
172+
*
173+
* @brief Defines the maximum number of CommandHandler, limits the number of active commands transactions on server.
174+
*/
175+
#define CHIP_IM_MAX_NUM_COMMAND_HANDLER 2
176+
177+
/**
178+
* @def CHIP_IM_MAX_NUM_COMMAND_SENDER
179+
*
180+
* @brief Defines the maximum number of CommandSender, limits the number of active command transactions on client.
181+
*/
182+
#define CHIP_IM_MAX_NUM_COMMAND_SENDER 2
183+
184+
/**
185+
* @def CHIP_IM_MAX_NUM_READ_HANDLER
186+
*
187+
* @brief Defines the maximum number of ReadHandler, limits the number of active read transactions on server.
188+
*/
189+
#define CHIP_IM_MAX_NUM_READ_HANDLER 3
190+
191+
/**
192+
* @def CHIP_IM_MAX_NUM_READ_CLIENT
193+
*
194+
* @brief Defines the maximum number of ReadClient, limits the number of active read transactions on client.
195+
*/
196+
#define CHIP_IM_MAX_NUM_READ_CLIENT 2
197+
198+
/**
199+
* @def CHIP_IM_MAX_REPORTS_IN_FLIGHT
200+
*
201+
* @brief Defines the maximum number of Reports, limits the traffic of read and subscription transactions.
202+
*/
203+
#define CHIP_IM_MAX_REPORTS_IN_FLIGHT 2
204+
205+
/**
206+
* @def CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS
207+
*
208+
* @brief Defines the maximum number of path objects, limits the number of attributes being read or subscribed at the same time.
209+
*/
210+
#define CHIP_IM_SERVER_MAX_NUM_PATH_GROUPS 9
211+
212+
/**
213+
* @def CHIP_IM_MAX_NUM_WRITE_HANDLER
214+
*
215+
* @brief Defines the maximum number of WriteHandler, limits the number of active write transactions on server.
216+
*/
217+
#define CHIP_IM_MAX_NUM_WRITE_HANDLER 2
218+
219+
/**
220+
* @def CHIP_IM_MAX_NUM_WRITE_CLIENT
221+
*
222+
* @brief Defines the maximum number of WriteClient, limits the number of active write transactions on client.
223+
*/
224+
#define CHIP_IM_MAX_NUM_WRITE_CLIENT 2

0 commit comments

Comments
 (0)