-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RTC: Refine performance about 700+ streams. 4.0.71
- Loading branch information
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b431ad7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这一轮RTC性能优化,大幅提升了推拉流的路数,重点的优化如下。
首先,只有完善的Benchmark工具压测,才能做性能优化。srs-bench基于Pion做了RTC的Benchmark,推流和拉流。
然后,UDP大量包的场景下,ContextId也是个需要优化的点:
另外,由于端口复用,每个UDP包需要查找对应的Conntion,以及对应的处理对象,需要优化:
当然,基本的内存和缓冲区的优化:
最后,相关机制的优化: