mpegts: Make discard_pid() faster for single-program streams
authorBen Avison <bavison@riscosopen.org>
Mon, 5 Aug 2013 12:12:51 +0000 (13:12 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 5 Aug 2013 12:18:42 +0000 (15:18 +0300)
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: Martin Storsjö <martin@martin.st>

No differences found