-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sys/shell: reduce overhead of XFA shell commands #20958
sys/shell: reduce overhead of XFA shell commands #20958
Conversation
Ah, I should also show that this does actually bring down This PR:
And in
|
Interesting: On |
f4b2ef1
to
9434532
Compare
9434532
to
c9240ac
Compare
55a1a7a
to
7d2a457
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(comments moved to #20964 (review), which is now part of this PR)
7d2a457
to
ce07e7e
Compare
There are two static issues, one introduced by this PR, the other already in the file |
Those should be gone when rebasing on top of #20964
Indeed. The idea is to proof here that RIOT-OS/rust-riot-wrappers#134 would work (via Murdock/CI), get RIOT-OS/rust-riot-wrappers#134 merged, then replace the commit with updating the rust-riot-wrappers instead of bending the repo to my PR. |
This needs a rebase |
See-Also: RIOT-OS/RIOT#20958 Merges: #134
See-Also: RIOT-OS/RIOT#20958 See-Also: #134
We do not need to add an array of pointers to the shell commands, just an array of shell commands is sufficient. This reduced the overhead of XFA by `sizeof(void *)` per command.
ce07e7e
to
a7e2515
Compare
I dropped the work around now that the change are upstream, and instead just bump rust-riot-wrappers.
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. That it was the way it was confused me once already; the padding issues you've seen that apparently now work fine might be why it was this way originally. Not tested locally; trusting your and CI tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good, thanks! Trusting CI for correctness as well.
Thx! |
Contribution description
We do not need to add an array of pointers to the shell commands, just an array of shell commands is sufficient. This reduced the overhead of XFA by
sizeof(void *)
per command.Testing procedure
And
native
will be tested by the CI.Issues/PRs references