Replies: 4 comments 9 replies
-
|
I'm looking at the issue with refreshing CANBus signals. I thought about whether it would be worthwhile to create an abstraction that collects all subsystems that need signals refreshed into one call to The I'm curious as to how this works in our code, and specifically remembering that you said we'd like to obtain velocity signals from the shooter at a higher frequency. From what I can see, you're calling the MotorIO's input (which calls BaseStatusSignal.refreshAll()) once per robot loop via |
Beta Was this translation helpful? Give feedback.
-
|
@godmar I used some of my copilot quota to ask Claude Opus 4.5 to reduce allocations in our code. It did extensive optimization (some of which was only relevant to sim, so I might ask it to undo these) but it had the effect of reducing allocations in sim according to visualVM from 36mb/s to 27m/s. It did a lot of restructuring of our module code to reuse arrays and values rather than creating new arrays and using a lot of streams. This should also show an improvement in real life on the roboRIO. I was working off of my branch for #80 since that's where we saw issues. Would you like me to go ahead and commit those changes so you can see what it did? We can always revert them later if needed. |
Beta Was this translation helpful? Give feedback.
-
|
Check it into a branch perhaps or share a gist with the diffs?
…On Sun, Mar 1, 2026, 10:03 AM aidnem ***@***.***> wrote:
@godmar <https://github.com/godmar> I used some of my copilot quota to
ask Claude Opus 4.5 to reduce allocations in our code. It did extensive
optimization (some of which was only relevant to sim, so I might ask it to
undo these) but it had the effect of reducing allocations in sim according
to visualVM from 36mb/s to 27m/s.
It did a lot of restructuring of our module code to reuse arrays and
values rather than creating new arrays and using a lot of streams. This
should also show an improvement in real life on the roboRIO. I was working
off of my branch for #80
<#80> since that's where
we saw issues. Would you like me to go ahead and commit those changes so
you can see what it did? We can always revert them later if needed.
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADWX5ISLYRWBXMC3C5BK5T4ORGNNAVCNFSM6AAAAACWC7BO5CVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOJWGIZTINA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
One say way to save a lot of logging would be to lazy-evaluate all of our tunable numbers. I had an agent make #87 while I was at the gym (mainly to test the capabilities of agents, to be honest), and it pointed out a lot of unnecessarily logged tunable numbers. We could have some kind of system where we don't actually create any tunable numbers unless: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
From CD:
Beta Was this translation helpful? Give feedback.
All reactions