[FFmpeg-devel] Realmedia patch
Ronald S. Bultje
rsbultje
Wed Aug 27 03:04:52 CEST 2008
Hi again,
On Sun, Aug 24, 2008 at 10:33 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> besides this is not exporting it is removing and adding a different one.
> That should be 2 patches
> * move
> * change implementation
Change implementation here.
Code to test:
char buf[512];
unsigned char src[256];
/* init */
for (n = 0; n < 256; n++) src[n] = n;
for (n = 0; n < 200000; n++) {
data_to_hex (buf, src, 256);
for (m = 0; m < 256; m++) src[m] += buf[m];
}
and then time ./test with old or new impl.
200000 cycles, gcc -g, old:
real 0m2.377s
user 0m2.361s
sys 0m0.008s
new:
real 0m0.900s
user 0m0.892s
sys 0m0.005s
200000 cycles, gcc -O2, old:
real 0m1.223s
user 0m1.214s
sys 0m0.006s
new:
real 0m0.272s
user 0m0.253s
sys 0m0.005s
hope that's OK enough.
Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sdp-change-data_to_hex.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080826/767fac96/attachment.txt>
More information about the ffmpeg-devel
mailing list