Skip to content
Snippets Groups Projects
Commit c84ea750 authored by Ben Avison's avatar Ben Avison Committed by Martin Storsjö
Browse files

mpegts: Make discard_pid() faster for single-program streams


When a stream contains a single program, there's no point in doing a
PID -> program lookup. Normally the one and only program isn't disabled,
so no packets should be discarded.

              Before          After
              Mean   StdDev   Mean   StdDev  Change
discard_pid()   73.8  9.4       20.2  1.5    +264.8%
Overall       2300.8 28.0     2253.1 20.6      +2.1%

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent cabb1681
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment