media/library
olly 4cb5b34977 Don't use ParsableBitArray to parse TS packet headers
Really low hanging fruit optimization for TS extraction.

ParsableBitArray is quite expensive. In particular readBits
contains at least 2 if blocks and a for loop, and was being
called 5 times per 188 byte packet (4 times via readBit). A
separate change will follow that optimizes readBit, but for
this particular case there's no real value to using a
ParsableBitArray anyway; use of ParsableBitArray IMO only
really becomes useful when you need to parse a bitstream more
than 4 bytes long, or where parsing the bitstream requires
some control flow (if/for) to parse.

There are probably other places where we're using
ParsableBitArray over-zealously. I'll roll that into a
tracking bug for looking in more detail at all extractors.

Issue: #3040

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=161650940
2017-07-15 22:27:20 +01:00
..
all Consolidate version codes in root gradle file 2017-04-18 19:42:27 +01:00
core Don't use ParsableBitArray to parse TS packet headers 2017-07-15 22:27:20 +01:00
dash Update handled schemes for timing element resolution. 2017-06-12 10:36:52 +01:00
hls Add URLs EXT-X-STREAM-INF uris only once 2017-06-30 18:40:13 +01:00
smoothstreaming Fix SmoothStreaming Timeline 2017-06-06 17:50:49 +01:00
ui Misc tweaks to UI components 2017-07-15 22:27:06 +01:00