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

feat: new KCP transport #393

Merged
merged 3 commits into from
Oct 14, 2020
Merged

feat: new KCP transport #393

merged 3 commits into from
Oct 14, 2020

Conversation

paulpach
Copy link
Contributor

@paulpach paulpach commented Oct 14, 2020

New transport based on KCP on top of UDP.

This transport appears to have big performance improvement over the default TCP transport.

In the mosters sync benchmark these are the results (note units changed):

TCP

Time Millisecond Median:27.49 Min:3.69 Max:439.36 Avg:50.71 Std:69.79 SampleCount: 256 Sum: 12980.73

KCP

Time Microsecond Median:7699.10 Min:2381.30 Max:25384.80 Avg:8393.94 Std:3804.06 SampleCount: 256 Sum: 2148847.80

It is 600% faster and much smaller jitter in my machine.

@paulpach paulpach changed the title feat: new KCP/UDP transport feat: new KCP transport Oct 14, 2020
@paulpach paulpach merged commit 5de53e1 into master Oct 14, 2020
@paulpach paulpach deleted the kcp branch October 14, 2020 17:02
github-actions bot pushed a commit that referenced this pull request Oct 14, 2020
# [49.1.0](v49.0.0...v49.1.0) (2020-10-14)

### Features

* new KCP transport ([#393](#393)) ([5de53e1](5de53e1))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 49.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant