gstreamer/libs/gst
Sungho Bae d3b2f6e4b8 bytereader: Use pointer instead of index access
Currently the scan uses Boyer-moore method and its performance is good.
but, it can be optimized from an implementation of view.

The original scan code is implemented by byte array and index-based access.
In _scan_for_start_code(), the index is increasing from start to end and the
base address of the byte array is referred to as return value.

In the case, index-based access can be replaced by pointer access, which
improve the performance by removing index-related operations.

Its performace is enhanced by approximately 8% on arm-based embedded devices.
Although it seems trivial, it can affect the overall performance because the
_scan_for_start_code() function is very often called when H.264/H.265 video is
played.

In addition, the technique can apply for all architectures and it is good in
view of readability and maintainability.

https://bugzilla.gnome.org/show_bug.cgi?id=731442
2014-06-10 09:35:38 -04:00
..
base bytereader: Use pointer instead of index access 2014-06-10 09:35:38 -04:00
check check: use _exit() instead of exit() in fail_unless() so we exit immediately 2014-05-07 10:44:34 +01:00
controller libs: g-ir-scanner: do not hardcode libtool path 2014-04-17 09:26:20 +01:00
helpers Fix FSF address 2012-11-03 20:44:48 +00:00
net nettimeprovider: Use non-freed variable 2014-05-09 14:46:59 +02:00
Makefile.am dist net directory only once 2012-03-21 12:10:21 +01:00