Speed problem even with C extension !

Jp Calderone exarkun at intarweb.us
Mon Feb 10 19:12:13 CET 2003


On Mon, Feb 10, 2003 at 10:08:16AM +0100, christophe grimault wrote:
> Hi all,
> 
> [snip]
> 
> I would have expected a difference factor in the range from 1.3 to 2. Is 
> it possible that the outer loop, the calling overhead (since the FFT64 
> is a small FFT) of FFT and fct foo() are the reason.
> 
> I've also noticed that a few (if...elif...else) in between the five 
> above steps contribute to slow down things even more. However they are 
> very few of these.
> 
> Any opinion would be appreciated before I go deeper in my task !
> 

  Have you profiled yet?  This is an important part of the optimization
process.  Try running your program through the profile module, then look for
where time is being spent in the output.  Once you know that, you know where
to concentrate your efforts.

  Jp

-- 
#!/bin/bash
( LIST=(~/.netscape/sigs/*.sig)
  cat ${LIST[$(($RANDOM % ${#LIST[*]}))]}
  echo --$'\n' `uptime` ) > ~/.netscape/.signature
-- 
 up 1 day, 22:28, 1 user, load average: 0.00, 0.00, 0.00
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030210/1fb05520/attachment.pgp>


More information about the Python-list mailing list