-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make BasicInformationCluster use AttributeAccessInterface to save RAM #13885
Merged
andy31415
merged 33 commits into
project-chip:master
from
tcarmelveilleux:refactor-version-getter2
Jan 27, 2022
Merged
Make BasicInformationCluster use AttributeAccessInterface to save RAM #13885
andy31415
merged 33 commits into
project-chip:master
from
tcarmelveilleux:refactor-version-getter2
Jan 27, 2022
Conversation
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
pullapprove
bot
requested review from
andy31415,
anush-apple,
balducci-apple,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
franck-apple,
gjc13,
hawk248,
holbrookt,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kpschoedel and
LuDuda
January 24, 2022 20:11
PR #13885: Size comparison from 12db26d to 41d65a7 Decreases (9 builds for cyw30739, k32w, p6, qpg, telink)
Full report (10 builds for cyw30739, k32w, p6, qpg, telink)
|
PR #13885: Size comparison from 12db26d to aca6232 Increases (1 build for linux)
Decreases (13 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
Full report (15 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
|
carol-apple
approved these changes
Jan 26, 2022
PR #13885: Size comparison from 12db26d to 0c09801 Decreases (6 builds for esp32, mbed)
Full report (7 builds for esp32, mbed)
|
PR #13885: Size comparison from 777fec7 to cb84ab4 Increases (1 build for linux)
Decreases (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (32 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
/rebase |
woody-apple
approved these changes
Jan 27, 2022
PR #13885: Size comparison from 63d0c37 to 44f9901 Increases (1 build for linux)
Decreases (22 builds for cyw30739, efr32, k32w, linux, nrfconnect, p6, qpg, telink)
Full report (26 builds for cyw30739, efr32, k32w, linux, nrfconnect, p6, qpg, telink)
|
PR #13885: Size comparison from 2c4de1b to 01285d5 Decreases (28 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
cecille
approved these changes
Jan 27, 2022
jmartinez-silabs
approved these changes
Jan 27, 2022
selissia
pushed a commit
to selissia/connectedhomeip
that referenced
this pull request
Jan 28, 2022
…project-chip#13885) * Make basic info cluster use AttributeAccessInterface * ZAP file changes * Generated files * Regen zap with External more places * Fix lack of default value in all-clusters-app * Restyled by clang-format * ZAP regen * Revert Location to RAM to diagnose CI * Update location attribute usage, empty is illegal * Fix conflicts and zap regen * Fix error code returned by location * Restyled * Add CI debugging * Restyled by clang-format * Fix InvalidValue usage * Regen zap * Fix productName * Fix location access on Darwin * Fix file save failure caused by restyle-diff.sh * Go back to external on location * Zap regen * Regen ZAP * Fix Cirque * ZAP regen Co-authored-by: Restyled.io <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
BasicInformationCluster round-trips through RAM with every attribute currently "RAM" configured. Since most values of BasicInformationCluster are constants that are fixed for an entire build, and that they are currently all returned by ConfigurationManager accessor, the round trips to RAM take more space than required and prevent using the direct source of truth for when values change.
Issue #9261
Change overview
Testing