Attention is currently required from: pespin.
1 comment:
File src/libmsc/gsm_04_08_cc.c:
Patch Set #4, Line 1797: codec_filter_run(&trans->cc.codecs);
I think that was an unconclusive discussion, and probably I was not really happy about that 😊 […]
no, it's not expensive to call codec_filter_run().
In reverse I could ask: what's the point in calling it every time the inputs modify when nothing is using the result between input modifications?
Inputs are from various sources, e.g. BSSAP Codec List (BSS Supported), MS Bearer Capabilites, the SDP from the remote call leg. It is a simple way to just call codec_filter_run() before using its result.
Yes, we could also call it whenever any of the inputs change. We could also call it implicitly from every codec_filter_set_foo() function. Neither would make much of a difference. I chose to run() before using the result as a simple way to not call run() overly often, and I think there's nothing wrong with this approach.
If you would like to optimize performance, here is my usual answer: run a profiler to measure and prove the places that are inefficient; i'm pretty sure the codec filter is not a significant contender.
To view, visit change 30126. To unsubscribe, or for help writing mail filters, visit settings.