-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use epoll #248
Comments
Might be good to consider io_uring as well. Not sure which one is better. |
Sounds good. But I am not aware of any golang io_uring implementation. And it requires a pretty new kernel support... |
I found these:
And while io_uring looks interesting there are some tests that don't show a clear winner:
So this may or may not be the right choice. |
Tested gnet and netpoll. Both perform worse than go net because EpollWait runs more frequently. |
Goal
*PacketIO
oriented to[]byte/MysqlPacket
oriented. Command processor or authenticator should not read from the connection actively. To do this, we should provide a set of helper parsing/making packets.Lots of refactors are needed, since blocking & non-blocking code will be totally different.
The text was updated successfully, but these errors were encountered: