Skip to content
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

Optimize structure packing within the SDK #36996

Open
andy31415 opened this issue Jan 8, 2025 · 0 comments
Open

Optimize structure packing within the SDK #36996

andy31415 opened this issue Jan 8, 2025 · 0 comments

Comments

@andy31415
Copy link
Contributor

#36995 did some experimentation and there are definately savings to be had, however those can also be at the cost of readability/logical grouping. We have to see if any savings exist that do not impact maintainability (and those can just be applied) or if some changes are worth it enough to make anyway.

To check structure packing, pahole can be used (note though that across different architectures we get different results ... we should probably focus on arm32 as the typical small target):

e.g. pahole --holes=1 --show-private-classes chip-qpg6105-lighting-example.out or pahole --show_private_classes ./out/qpg-qpg6105-light/obj/third_party/connectedhomeip/src/app/libCHIPDataModel.ReadHandler.cpp.o

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant