[Mplayer-cvslog] CVS: main/DOCS/tech TODO,1.9,1.10
    Michael Niedermayer 
    michaelni at gmx.at
       
    Sun Dec  9 20:48:09 CET 2001
    
    
  
Hi
On Sunday 09 December 2001 19:17, Nick Kurshev wrote:
[...]
> IMHO such code would be better to move into memcpy_init but memcpy should
> be replaced with pointer into it ;)
> Calling through pointer should be faster of such if-else blocks
no
try it yourself (attached benchmark compiled with -O4)
the output for my p3 is
51052k cycles needed for 10000000 calls through if/else
140573k cycles needed for 10000000 calls through function pointers
[...]
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: call-benchmark.cpp
Type: text/x-c++
Size: 665 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20011209/404ad4f0/attachment.bin>
    
    
More information about the MPlayer-cvslog
mailing list