Select Git revision
media_decoder.cpp
-
Using too many threads for decoding is not recommended and can introduce latency. Also during a call there are 2 live encoding and 2 live decoding, so using all threads for every decoding is not useful and could decrease performance and increase latency because of more CPU context switch. This is especially visible on machines with many logical cores like AMD Threadrippers or some Intel CPUs. Ideally, loads should use in total as many threads as logical cores to profit from the full machine power while limiting context switches. In this patch, decoders will use half the number of logical core, with a maximum of 8 threads. Change-Id: Ibe6c083c35fba972d930346629de2175625afd8c Reviewed-by:
Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Using too many threads for decoding is not recommended and can introduce latency. Also during a call there are 2 live encoding and 2 live decoding, so using all threads for every decoding is not useful and could decrease performance and increase latency because of more CPU context switch. This is especially visible on machines with many logical cores like AMD Threadrippers or some Intel CPUs. Ideally, loads should use in total as many threads as logical cores to profit from the full machine power while limiting context switches. In this patch, decoders will use half the number of logical core, with a maximum of 8 threads. Change-Id: Ibe6c083c35fba972d930346629de2175625afd8c Reviewed-by:
Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.