-
Couldn't load subscription status.
- Fork 488
perf(audio-stream): reduce memory allocation on send audio frame #1411
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
perf(audio-stream): reduce memory allocation on send audio frame #1411
Conversation
|
Thanks for the PR. I'm getting a compiler error buildinghte RTPPacket class. |
d5198e5 to
59905c7
Compare
|
I think it will compiles now, I'm using Rider on Linux, I was not even able to build because some issues on Assembly, so I had to just remove the other frameworks and keep the .NET8. |
Have you tried Microsoft.NETFramework.ReferenceAssemblies.net481? See .NET Framework Targeting Pack Nuget Packages. |
|
I think I came up with something in this branch. Adding that and a few more things that depend on #1414 allowed me to reduce to almost half the allocations on my service serving 1 video and that doesn't show significant increase with the number of clients. |
59905c7 to
9d136a4
Compare
@paulomorgado I tried but I'm still getting for each target framework. It's probably caused by some weird issue with |
|
I tried this on Windows and had no isssues: <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net462" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>If it still gives you issues, try this: <ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net462" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup> |
Hey, here's some changes to improve memory allocation of
SendAudioFrame, I tried to minimize changes, there's a lot of things that we can improve but I decided to start making small changes.Benchmark: