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

如何提升kcp的速度? #243

Open
dotqi opened this issue Jun 20, 2023 · 4 comments
Open

如何提升kcp的速度? #243

dotqi opened this issue Jun 20, 2023 · 4 comments

Comments

@dotqi
Copy link

dotqi commented Jun 20, 2023

本机测试echo.go的代码。发现最大速度只有400KB/S左右。这个能提升吗,还是KCP的极限只是这些?

@xtaci
Copy link
Owner

xtaci commented Jun 20, 2023

image
不会哈,参考sess_test.go相关的echo代码。

@xtaci
Copy link
Owner

xtaci commented Jun 20, 2023

image
单程票更快

@dotqi
Copy link
Author

dotqi commented Jun 25, 2023

谢谢。对比一下差在conn.SetNoDelay(1, 10, 2, 1) 这个参数上了。
请问一下,有没有中文的参数说明文档?谢谢。

@xtaci
Copy link
Owner

xtaci commented Jun 25, 2023

谢谢。对比一下差在conn.SetNoDelay(1, 10, 2, 1) 这个参数上了。 请问一下,有没有中文的参数说明文档?谢谢。

https://github.com/skywind3000/kcp#%E5%8D%8F%E8%AE%AE%E9%85%8D%E7%BD%AE

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

No branches or pull requests

2 participants