[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    python extension, -pthreads and speed
From:       pepster () users ! sourceforge ! net (Joseph Heled)
Date:       2004-04-23 7:36:08
Message-ID: 4fd1aa5e.0404222336.2a1347a8 () posting ! google ! com
[Download RAW message or body]

Hi,

My python module is built using the recommended distutils.core, which
uses the -pthread flag. To my amazement this slows down the (-O3) code
by a factor of two (!2)

My gcc documentation says pthread is a PowerPC flag, but I guess this
is wrong.

Would my code fail if I drop this flag (Assuming I don't use threads
at all)?

Why would there be such a speed penalty?

Anyone can shed some light on that?

Thanks, Joseph

>python -V
Python 2.3

>gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure  : (reconfigured)
../gcc-3.3/configure --enable-languages=c,c++
Thread model: posix
gcc version 3.3
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic