2 files changed
+2
-1
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
| 158 | + | |
158 | 159 |
| |
159 | 160 |
| |
160 | 161 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
|
1 commit comments
winlinvip commentedon Feb 28, 2021
这一轮RTC性能优化,大幅提升了推拉流的路数,重点的优化如下。
首先,只有完善的Benchmark工具压测,才能做性能优化。srs-bench基于Pion做了RTC的Benchmark,推流和拉流。
然后,UDP大量包的场景下,ContextId也是个需要优化的点:
另外,由于端口复用,每个UDP包需要查找对应的Conntion,以及对应的处理对象,需要优化:
当然,基本的内存和缓冲区的优化:
最后,相关机制的优化: