mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-07-27 03:39:21 +00:00
The main loop processes 8 bytes in 5 instructions. For comparison, the optimal plain strnlen() requires 4 instructions per byte (6.4x worse): LBU; ADDI; BEQZ; BNE. The current libavcodec C code involves 5 instructions per byte (8x worse). Actual benchmarks may be slightly less favourable due to latency from ORC.B to BNE.
2.8 KiB
2.8 KiB