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

Fix/slow response #45

Merged
merged 6 commits into from
Jul 19, 2019
Merged

Fix/slow response #45

merged 6 commits into from
Jul 19, 2019

Conversation

JWhitleyWork
Copy link

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 the linuxcan API on every read and write. This PR removes the code to check the on-bus status with linuxcan 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).

Copy link
Contributor

@rgunjala-as rgunjala-as left a 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.

Copy link

@icolwell icolwell left a 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.

Copy link
Member

@icolwell-as icolwell-as left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, wrong account.

@JWhitleyWork JWhitleyWork merged commit f97b6ac into master Jul 19, 2019
@JWhitleyWork JWhitleyWork deleted the fix/slow_response branch July 19, 2019 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants