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

SubjectIdList memory use #24

Open
samcrow opened this issue Mar 31, 2023 · 0 comments
Open

SubjectIdList memory use #24

samcrow opened this issue Mar 31, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@samcrow
Copy link
Owner

samcrow commented Mar 31, 2023

The generated SubjectIdList Rust type uses about 1024 bytes of memory for the Mask variant.

The BasicNode periodically publishes a port list, which contains two subject ID lists and two service ID lists. In total, it uses up about 2176 bytes of memory (even if the node is only active on a few ports). That's a lot of memory for a microcontroller.

The BasicNode's memory usage should be lower when fewer ports are active. It could use custom serialization code and a more compact storage format instead of the generated SubjectIdList.

@samcrow samcrow added the enhancement New feature or request label Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant