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

CANParser: filter CAN messages by bus and addresses #1383

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Oct 16, 2024

This PR adds filtering for CAN messages based on the bus and addresses that the CANParser specifically cares about.
Instead of converting and copying all incoming messages from Python to C++ , we now only parse and copy those with relevant addresses to the c++ CanFrame vector. This reduces the overhead from unnecessary message processing, lowering CPU and memory usage while enhancing overall performance and efficiency.

@github-actions github-actions bot added the can related to CAN tools, aka opendbc/can/ label Oct 16, 2024
@deanlee deanlee changed the title CANParser: filter strings CANParser: filter CAN messages by relevant addresses Oct 16, 2024
@deanlee deanlee force-pushed the parser_filter_strings branch 2 times, most recently from 6c9cc58 to 13b83ea Compare October 16, 2024 17:04
@deanlee deanlee changed the title CANParser: filter CAN messages by relevant addresses CANParser: filter CAN messages by bus and addresses Oct 16, 2024
@deanlee deanlee force-pushed the parser_filter_strings branch 3 times, most recently from 7fa0a18 to 098d170 Compare October 16, 2024 18:13
@deanlee deanlee marked this pull request as ready for review October 16, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can related to CAN tools, aka opendbc/can/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant