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

CAN Tx queue uses more RAM than necessary #4

Open
jschall opened this issue Jan 19, 2019 · 0 comments
Open

CAN Tx queue uses more RAM than necessary #4

jschall opened this issue Jan 19, 2019 · 0 comments
Labels
enhancement New feature or request RAM recovery

Comments

@jschall
Copy link
Contributor

jschall commented Jan 19, 2019

sizeof(struct can_tx_frame_s) is currently around 32 bytes. Reducing this will save significant amounts of RAM. A few ways:

  • packed storage
  • 16-bit milliseconds for creation time and timeout.
  • 8-bit or 16-bit array index for the next pointer rather than a full 32-bit pointer
  • split into 2 types: one that carries a payload, and one that carries ID and metadata.
@jschall jschall added enhancement New feature or request RAM recovery labels Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request RAM recovery
Projects
None yet
Development

No branches or pull requests

1 participant