You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
andy31415
changed the title
Optimize memory for interaction model object pools
Decrease size for interaction model object pools (use 1/2 the current value)
Oct 27, 2021
@lucicop - are these small values a good default? It seems we may want to make this platform dependent - I imagine large devices (darwin, linux, iOS, android) will want large pools or use heap and smaller devices may want minimal sizes.
Size increase report for "gn_qpg-example-build" from 22f8115
File
Section
File
VM
chip-qpg6100-lighting-example.out
.heap
0
1448
chip-qpg6100-lighting-example.out
.text
8
8
chip-qpg6100-lighting-example.out
.bss
0
-1448
Full report output
BLOAT REPORT
Files found only in the build output:
report.csv
Comparing ./master_artifact/chip-qpg6100-lighting-example.out and ./pull_artifact/chip-qpg6100-lighting-example.out:
sections,vmsize,filesize
.debug_loc,0,1975
.heap,1448,0
.debug_ranges,0,536
.debug_info,0,84
.text,8,8
[Unmapped],0,-8
.debug_frame,0,-12
.debug_line,0,-119
.bss,-1448,0
Comparing ./master_artifact/chip-qpg6100-lighting-example.out.map and ./pull_artifact/chip-qpg6100-lighting-example.out.map:
BLOAT EXECUTION FAILED WITH CODE 1:
bloaty: unknown file type for file './pull_artifact/chip-qpg6100-lighting-example.out.map'
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Interaction model pools occupy a lot of space and could be optimized for certain projects.
Change overview
This PR reduces the number of buffer pools allocated for each class by a factor of 2.
Testing
This was tested by establishing a BLE secure session, commissioning on Thread and running a series of zcl interactions with the device.