-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix/slow response #45
Conversation
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.
Basic testing with a PACMod vehicle was successful. No latency or other problems like before.
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.
Didn't have time to review it all but I need to approve so it clears my change request. Looks like Rinda and Dan have got it covered.
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.
Ugh, wrong account.
The current release of
kvaser_interface
suffers from very slow performance on reading and writing. The majority of this performance degradation comes from checking the on-bus status through thelinuxcan
API on every read and write. This PR removes the code to check the on-bus status withlinuxcan
every time, replacing it with a local status variable which is modified when the on-bus state changes. This does not fix the performance problem 100% but is a major improvement (approximately 200% reduction in latency).