-
Notifications
You must be signed in to change notification settings - Fork 160
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
Reduce candidateBase.writeTo
CPU cost
#128
Comments
I have tested This My question is where to finish this code? in the ice package or transport package? |
🔥 that's amazing! Yes we need to do this @adwpc I will take it. I also have benchmarks I am running will post results before/after. |
I think it only work on linux
|
How much does it increase latency? |
kernel context switches COST. a single sendmmsg call has nearly no measurable overhead difference between a sendmsg call for a single packet, but you can bundle up a lot of packets. Also see ngtcp2 which has similar mechanisms in it that just landed for quic. |
candidateBase.writeTo
cpu costcandidateBase.writeTo
cpu cost
candidateBase.writeTo
cpu costcandidateBase.writeTo
CPU cost
Summary
Motivation
reduce
candidateBase.writeTo
cpu costDescribe alternatives you've considered
Maybe we can use bufio in
candidateBase.writeTo
, like:grpc/grpc-go@30d8f07
Additional context
https://github.com/pion/ice/blob/master/candidate_base.go#L152
The text was updated successfully, but these errors were encountered: