-
Notifications
You must be signed in to change notification settings - Fork 769
candump: epoll_wait() instead of select() runs faster and better keeps packet order #264
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
Conversation
|
select() is a horrible beast of the past. We should use epoll today, it is in the kernel longer than CAN support. |
|
Hi Jörg, |
marckleinebudde
left a comment
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.
Thanks for the patch, some nitpicks inline.
|
@IDC-Dragon, can you squash and force push the change, so that there is only one commit |
|
Not sure if I did squash+push correct, don't see an effect on the pull request. I did: |
|
squahing means, make one commit from multiple ones. Your master branch still contains two commits. |
|
I missed the squash in the rebase. Now it is one commit. |
|
Can you please change the commit message as suggested here: |
marckleinebudde
left a comment
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.
some nitpicks left
db8bfe4 to
fa76931
Compare
|
force-pushed again, it seems my editor messed the indentation in one place |
marckleinebudde
left a comment
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.
You have some idention problem still: feel free to squash my commit:
https://github.com/marckleinebudde/can-utils/commits/for-IDC-Dragon
|
Now please rewrap you commit message to < 80 chars per line. Then we're good to go. |
Done, I may shall say. |
|
It fails on android... |
|
Let's try with |
|
@IDC-Dragon can you update the patch, then I'll merge it. |
Using epoll_wait() instead of select() gives higher performance for listening on multiple interfaces. Additionally, the read order has a higher chance to resemble the true temporal order. select() gives implicit priority to the lower index socket. Signed-off-by: Jörg Hohensohn <joerg.hohensohn@gmx.de>
Using epoll_wait() instead of select() gives higher performance for listening on multiple interfaces. Additionally, the read order has a higher chance to resemble the true temporal order. select() gives implicit priority to the lower index socket.