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

避免跳过一个正常的ts包 #2423

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexliyu7352
Copy link
Member

想了想, 虽然你直接操作内存会比较高性能, 但是与反复遍历整个大循环想比直接在这里寻找下一个包头会让代码更加清晰, 降低阅读代码时的心智负担, 所以还是提交了这个修改.

你看下是否合适, 如果不合适就还是按照你的方式修改, 还是使用memchr来寻找并再次循环onSearchPacketTail

@xia-chu
Copy link
Member

xia-chu commented Apr 26, 2023

最好对比下性能吧 这个是高频操作。
hls/ts这块我觉得你全权负责算了 我就不本地测试验证了

@alexliyu7352
Copy link
Member Author

alexliyu7352 commented Apr 26, 2023 via email

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

Successfully merging this pull request may close these issues.

None yet

2 participants