diff options
author | Reinhard Nißl <rnissl@gmx.de> | 2007-04-12 00:02:45 +0200 |
---|---|---|
committer | Reinhard Nißl <rnissl@gmx.de> | 2007-04-12 00:02:45 +0200 |
commit | a76aacd69fa3512c3c566c93248bc6c41bb00e97 (patch) | |
tree | d68c90df740a00b561a5a90844dbb0d7d35ead3f /NEWS | |
parent | 5e58a3c2f6a02dbd198369d1132366c49f5345fe (diff) | |
download | xine-lib-a76aacd69fa3512c3c566c93248bc6c41bb00e97.tar.gz xine-lib-a76aacd69fa3512c3c566c93248bc6c41bb00e97.tar.bz2 |
Speed up start code scanning.
The current code implements hardware (a shift register) in software
just to find the byte pattern 00 00 01 xx, which causes remarkable
CPU load on less powerful machines.
The new approach uses memchr() to find the 01 in the buffer, which
most often hits a start code. memchr() seems to be even faster then
implementing a real pattern search (i. e. by just looking at every
third byte to find 01). The new implementation causes significantly
fewer CPU load on less powerful machines.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions